Skip to content

Commit

Permalink
fix: 🐛 remove expiresAt when searching cooldown table
Browse files Browse the repository at this point in the history
This was a "bug" that made Prisma  create new cooldowns whenever it exceeded the expiresAt Datetime
  • Loading branch information
VermiumSifell committed May 30, 2023
1 parent d16c0ef commit e344cb6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/handlers/CooldownManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit e344cb6

Please sign in to comment.