From 61bfb1e2ecde2a7b27e532c841e340fb56fb9ee8 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sat, 16 Nov 2019 22:46:38 +0000 Subject: [PATCH] Account check fix --- src/commands/securesign_init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/securesign_init.ts b/src/commands/securesign_init.ts index 0b575ce..48255e2 100644 --- a/src/commands/securesign_init.ts +++ b/src/commands/securesign_init.ts @@ -20,7 +20,7 @@ export default class SecureSign_Init extends Command { message.delete(); return message.channel.createMessage(`${this.client.stores.emojis.error} ***Run this command in your DMs!***`); } - const account = await this.client.db.Account.findOne({ id: message.author.id }); + const account = await this.client.db.Account.findOne({ userID: message.author.id }); if (!account) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Account not registered***`); if (account.locked) return message.channel.createMessage(`${this.client.stores.emojis.error} ***Your account is locked***`); const msg = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Initializing account...***`);