mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
augment previous hydrate: false - make sure on cron too. This is so weird..
This commit is contained in:
parent
c8a8c466ca
commit
d8c1b720b9
1 changed files with 3 additions and 3 deletions
|
|
@ -63,8 +63,8 @@ score = (model, user, taskId, direction, done) ->
|
|||
misc.batchTxn model, (uObj, paths) ->
|
||||
tObj = uObj.tasks[taskId]
|
||||
delta = algos.score(uObj, tObj, direction, {paths})
|
||||
, {user, done}
|
||||
#, {user, done, hydrate: false}
|
||||
#, {user, done}
|
||||
, {user, done, hydrate: false}
|
||||
delta
|
||||
|
||||
###
|
||||
|
|
@ -326,7 +326,7 @@ api.cron = (req, res, next) ->
|
|||
misc.batchTxn req.getModel(), (uObj, paths) ->
|
||||
uObj = helpers.derbyUserToAPI(user)
|
||||
algos.cron uObj, {paths}
|
||||
, {user, done:next, cron:true}
|
||||
, {user, done:next, cron:true, hydrate: false}
|
||||
|
||||
api.revive = (req, res, next) ->
|
||||
{user} = req.habit
|
||||
|
|
|
|||
Loading…
Reference in a new issue