Fix autocompile rollout logic

This commit is contained in:
Alasdair Smith 2017-10-16 12:44:11 +01:00
parent b9659ac7ef
commit abb21ac96b

View file

@ -258,7 +258,7 @@ module.exports = ProjectController =
counter = parseInt(user_id.toString().substring(18, 24), 16) counter = parseInt(user_id.toString().substring(18, 24), 16)
rolloutProportion = 0 rolloutProportion = 0
if counter % 1000 < rolloutProportion if counter % 1000 > rolloutProportion
# Don't show if user is not part of roll out # Don't show if user is not part of roll out
return cb(null, false) return cb(null, false)
userSignupDate = new Date(timestamp * 1000) userSignupDate = new Date(timestamp * 1000)