🚑 fix user deleting non shopRoles

This commit is contained in:
Axel Olausson Holtenäs 2022-04-11 23:12:14 +02:00
parent 8fe0c61414
commit 4e4fb4c750
No known key found for this signature in database
GPG key ID: 9347A5E873995701

View file

@ -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,