mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 23:42:12 +00:00
Prevent Cron from incorrectly updating loggedIn (#13559)
* Prevent Cron from incorrectly updating loggedIn * fix(lint): missing comma Co-authored-by: Sabe Jones <sabrecat@gmail.com>
This commit is contained in:
parent
dc5b85097e
commit
72a0313fb2
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,6 @@ async function checkForActiveCron (user, now) {
|
|||
}, {
|
||||
$set: {
|
||||
_cronSignature,
|
||||
'auth.timestamps.loggedin': now,
|
||||
},
|
||||
}).exec();
|
||||
|
||||
|
|
@ -142,6 +141,7 @@ async function cronAsync (req, res) {
|
|||
}, {
|
||||
$set: {
|
||||
_cronSignature: 'NOT_RUNNING',
|
||||
'auth.timestamps.loggedin': now,
|
||||
},
|
||||
}).exec();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue