mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Use the common _isInPercentageRollout
function for autocompile
This commit is contained in:
parent
22d1693f38
commit
0539930906
1 changed files with 1 additions and 2 deletions
|
@ -272,10 +272,9 @@ module.exports = ProjectController =
|
|||
|
||||
# Extract data from user's ObjectId
|
||||
timestamp = parseInt(user_id.toString().substring(0, 8), 16)
|
||||
counter = parseInt(user_id.toString().substring(18, 24), 16)
|
||||
|
||||
rolloutPercentage = 60 # Percentage of users to roll out to
|
||||
if counter % 100 > rolloutPercentage
|
||||
if !ProjectController._isInPercentageRollout(user_id, rolloutPercentage)
|
||||
# Don't show if user is not part of roll out
|
||||
return cb(null, { enabled: false, showOnboarding: false })
|
||||
userSignupDate = new Date(timestamp * 1000)
|
||||
|
|
Loading…
Reference in a new issue