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:
Matheus Lima Cunha 2021-10-21 19:39:16 -03:00 committed by GitHub
parent dc5b85097e
commit 72a0313fb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();