mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-31 15:09:32 +00:00
fix to reward issue in undo
This commit is contained in:
parent
903745f7c9
commit
07a3a3c3b6
1 changed files with 1 additions and 0 deletions
|
|
@ -210,6 +210,7 @@ module.exports.app = (appExports, model) ->
|
|||
_.each undo.stats, (val, key) -> batch.set "stats.#{key}", val
|
||||
taskPath = "tasks.#{undo.task.id}"
|
||||
_.each undo.task, (val, key) ->
|
||||
return if key in ['id', 'type'] # strange bugs in this world: https://workflowy.com/shared/a53582ea-43d6-bcce-c719-e134f9bf71fd/
|
||||
if key is 'completed'
|
||||
user.pass({cron:true}).set("#{taskPath}.completed",val)
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue