diff --git a/src/commands/delmerchant.ts b/src/commands/delmerchant.ts index b3e4704..4ed38dd 100644 --- a/src/commands/delmerchant.ts +++ b/src/commands/delmerchant.ts @@ -17,7 +17,7 @@ export default class DelMerchant extends Command { public async run(message: Message, args: string[]) { try { if (!args[0]) return this.client.commands.get('help').run(message, [this.name]); - const merchant = await this.client.db.Merchant.findOne({ _id: args[0] }); + const merchant = await this.client.db.Merchant.findOne({ key: args[0] }); if (!merchant) return this.error(message.channel, 'Merchant specified does not exist.'); return this.success(message.channel, `Deleted merchant \`${merchant._id}\`.`); } catch (err) {