From 8d8fa5b10e736fb588ae3375082cf1f555e2ffe9 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 28 Oct 2019 00:00:54 -0400 Subject: [PATCH] fix deprecation warning --- src/commands/lock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/lock.ts b/src/commands/lock.ts index 544f2e6..9281f69 100644 --- a/src/commands/lock.ts +++ b/src/commands/lock.ts @@ -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);