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
+1 -1
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();