should set locked to false

merge-requests/1/merge
Matthew 2019-10-28 00:01:05 -04:00
parent 8d8fa5b10e
commit 998229b494
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 2 additions and 1 deletions

View File

@ -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,