fix: 🐛 remove expiresAt when searching cooldown table

This was a "bug" that made Prisma  create new cooldowns whenever it exceeded the expiresAt Datetime
This commit is contained in:
Axel Olausson Holtenäs 2023-05-30 10:03:35 +02:00
parent d16c0efd53
commit 450d8304b2

View file

@ -25,7 +25,6 @@ class CooldownManager {
await prisma.cooldown.updateMany({
where: {
cooldownItem,
expiresAt,
guild: guild ? { id: guild.id } : undefined,
user: user ? { id: user.id } : undefined,
},