From 401b1db9fed5085fea3a448c466141085856503b Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 22 Oct 2020 00:47:17 -0400 Subject: [PATCH] fix --- src/commands/delmerchant.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {