1
0
Fork 0

fix deprecation warning

refactor/models
Matthew 2019-10-28 00:00:54 -04:00
parent d95e4d8efe
commit 8d8fa5b10e
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ export default class Lock extends Command {
const edit = await message.channel.createMessage(`***${this.client.stores.emojis.loading} Locking account...***`);
if (account.username === 'matthew' || account.root) return edit.edit(`***${this.client.stores.emojis.error} Permission denied.***`);
await this.client.util.exec(`lock ${account.username}`);
await account.update({ locked: true });
await account.updateOne({ locked: true });
const expiry = new Date();
const lockLength = args[1].match(/[a-z]+|[^a-z]+/gi);