should set locked to false

merge-requests/1/merge
Matthew 2019-10-28 00:00:07 -04:00
parent 9e88f0f8fe
commit d95e4d8efe
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ export default class Unlock extends Command {
const edit = await message.channel.createMessage(`***${this.client.stores.emojis.loading} Unlocking account...***`); const edit = await message.channel.createMessage(`***${this.client.stores.emojis.loading} Unlocking account...***`);
if (account.username === 'matthew' || account.root) return edit.edit(`***${this.client.stores.emojis.error} Permission denied.***`); if (account.username === 'matthew' || account.root) return edit.edit(`***${this.client.stores.emojis.error} Permission denied.***`);
await this.client.util.exec(`unlock ${account.username}`); await this.client.util.exec(`unlock ${account.username}`);
await account.updateOne({ locked: false });
const moderation = new this.client.db.Moderation({ const moderation = new this.client.db.Moderation({
username: account.username, username: account.username,