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:
committed by
GitHub
parent
dc5b85097e
commit
72a0313fb2
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user