mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 12:48:52 +00:00
Add missing ?; common tests pass
This commit is contained in:
parent
a2f9e0579d
commit
719ae1c89d
1 changed files with 1 additions and 1 deletions
|
|
@ -1635,7 +1635,7 @@ api.wrap = (user, main=true) ->
|
|||
# Analytics
|
||||
user.flags.cronCount?=0
|
||||
user.flags.cronCount++
|
||||
options.mixpanel.track('Cron',{'distinct_id':user._id,'resting':user.preferences.sleep})
|
||||
options.mixpanel?.track('Cron',{'distinct_id':user._id,'resting':user.preferences.sleep})
|
||||
options.ga?.event('behavior', 'cron', 'cron', user.flags.cronCount).send(); #TODO userId for cohort
|
||||
|
||||
# After all is said and done, progress up user's effect on quest, return those values & reset the user's
|
||||
|
|
|
|||
Loading…
Reference in a new issue