mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
HUGE hotfix - don't process todo / daily scoring if that checkbox didn't
come from the local model. This is the fix to the negative xp / gp bug!!
This commit is contained in:
parent
552eabfef8
commit
932dd6df69
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ module.exports.app = (appExports, model) ->
|
|||
the above function doesn't work so we need a listener here
|
||||
###
|
||||
user.on 'set', 'tasks.*.completed', (i, completed, previous, isLocal, passed) ->
|
||||
return if passed?.cron # Don't do this stuff on cron
|
||||
return if !isLocal or passed?.cron # Don't do this stuff on cron
|
||||
direction = if completed then 'up' else 'down'
|
||||
misc.score(model, i, direction, true)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue