🚑 fix user deleting non shopRoles
This commit is contained in:
parent
8fe0c61414
commit
4e4fb4c750
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue