mirror of
https://github.com/koreanbots/core.git
synced 2026-08-03 18:18:27 +00:00
fix: set updated_at with now()
This commit is contained in:
parent
8fb5c24421
commit
32369b0e91
@ -796,7 +796,7 @@ async function updateServer(id: string, servers: number, shards: number) {
|
||||
.update({
|
||||
servers: servers === undefined ? bot.servers : servers,
|
||||
shards: shards === undefined ? bot.shards : shards,
|
||||
updated_at: new Date().toISOString(),
|
||||
updated_at: knex.fn.now(),
|
||||
})
|
||||
.where({ id })
|
||||
if (servers) {
|
||||
@ -1179,7 +1179,7 @@ async function approveBotSubmission(id: string, date: number) {
|
||||
enforcements: data.enforcements,
|
||||
discord: data.discord,
|
||||
token: sign({ id }),
|
||||
updated_at: new Date().toISOString(),
|
||||
updated_at: knex.fn.now(),
|
||||
})
|
||||
updateOwners(id, [data.owner], 'bot')
|
||||
return true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user