mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
refactor: move delete call
This commit is contained in:
@@ -19,9 +19,9 @@ module.exports = function (User) {
|
||||
const uids = Object.keys(uidsToClean);
|
||||
try {
|
||||
await Promise.all(uids.map(async (uid) => {
|
||||
delete uidsToClean[uid];
|
||||
await cleanExpiredSessions(uid);
|
||||
await revokeSessionsAboveThreshold(uid);
|
||||
delete uidsToClean[uid];
|
||||
}));
|
||||
} catch (err) {
|
||||
winston.error(err.stack);
|
||||
|
||||
Reference in New Issue
Block a user