fix: monthly is fixed properly
This commit is contained in:
parent
d478751a0b
commit
c8d528b48f
2
index.js
2
index.js
|
@ -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 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 {
|
} else {
|
||||||
ctx.respond({
|
ctx.respond({
|
||||||
response_type: 'ephemeral',
|
response_type: 'ephemeral',
|
||||||
|
|
Loading…
Reference in a new issue