From 4e4fb4c7500160cf5a50ba47a1035dd7ec61a925 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Mon, 11 Apr 2022 23:12:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20fix=20user=20deleting=20non=20sh?= =?UTF-8?q?opRoles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/shop/roles/modules/cancel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/shop/roles/modules/cancel.ts b/src/commands/shop/roles/modules/cancel.ts index 66a0507..9a41a01 100644 --- a/src/commands/shop/roles/modules/cancel.ts +++ b/src/commands/shop/roles/modules/cancel.ts @@ -39,7 +39,7 @@ export default async (interaction: CommandInteraction) => { return interaction?.editReply({ embeds: [embed] }); } - const roleExist = await shopRolesSchema?.find({ + const roleExist = await shopRolesSchema?.findOne({ guildId: guild?.id, userId: user?.id, roleId: optionRole?.id,