mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-18 01:42:20 +00:00
feat(convention): temporary solution to disable dailies for signups
during conventions (have to be on con.habitrpg.com)
This commit is contained in:
parent
9f9b0e9eee
commit
1067c82418
1 changed files with 9 additions and 0 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue