fix: monthly is fixed properly

This commit is contained in:
DaInfLoop 2024-06-22 19:58:57 +01:00
parent d478751a0b
commit c8d528b48f

View file

@ -1130,7 +1130,7 @@ app.command('/b-monthly', async (ctx) => {
await sql`UPDATE users SET cshards = ${user.cshards + cshards}, dshards = ${user.dshards + dshards}, spoints = ${user.spoints + spoints} WHERE slack_id = ${ctx.context.userId};`
await sql`UPDATE cooldowns SET monthly = ${new Date(now.getTime() + (30 * 7 * 24 * 60 * 60 * 1000))};`
await sql`UPDATE cooldowns SET monthly = ${new Date(now.getTime() + (30 * 24 * 60 * 60 * 1000))};`
} else {
ctx.respond({
response_type: 'ephemeral',