From 998229b4947ce43a46c8a30b58525722c41fbdcf Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 28 Oct 2019 00:01:05 -0400 Subject: [PATCH] should set locked to false --- src/functions/checkLock.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/functions/checkLock.ts b/src/functions/checkLock.ts index 791d561..be1b924 100644 --- a/src/functions/checkLock.ts +++ b/src/functions/checkLock.ts @@ -13,7 +13,8 @@ export default function checkLock(client: Client) { const account = await client.db.Account.findOne({ username: moderation.username }); if (!account) return; await client.util.exec(`unlock ${account.username}`); - await moderation.update({ 'expiration.processed': true }); + await moderation.updateOne({ 'expiration.processed': true }); + await account.updateOne({ locked: false }); const mod = new client.db.Moderation({ username: account.username, userID: account.userID,