feat(convention): temporary solution to disable dailies for signups

during conventions (have to be on con.habitrpg.com)
This commit is contained in:
Tyler Renelle 2014-04-18 08:58:45 -07:00
parent 9f9b0e9eee
commit 1067c82418

View file

@ -93,6 +93,15 @@ api.registerUser = function(req, res, next) {
}
};
user = new User(newUser);
// temporary for conventions
if (req.subdomains[0] == 'con') {
_.each(user.dailys, function(h){
h.repeat = {m:false,t:false,w:false,th:false,f:false,s:false,su:false};
})
user.extra = {signupEvent: 'wondercon'};
}
user.save(cb);
ga.event('register', 'Local').send()
}