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:
parent
d16c0efd53
commit
450d8304b2
1 changed files with 0 additions and 1 deletions
|
@ -25,7 +25,6 @@ class CooldownManager {
|
||||||
await prisma.cooldown.updateMany({
|
await prisma.cooldown.updateMany({
|
||||||
where: {
|
where: {
|
||||||
cooldownItem,
|
cooldownItem,
|
||||||
expiresAt,
|
|
||||||
guild: guild ? { id: guild.id } : undefined,
|
guild: guild ? { id: guild.id } : undefined,
|
||||||
user: user ? { id: user.id } : undefined,
|
user: user ? { id: user.id } : undefined,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue