1
0
Fork 0

Account check fix

refactor/models
Bsian 2019-11-16 22:46:38 +00:00
parent f946b1c8bf
commit 61bfb1e2ec
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -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...***`);