fix: forgot to set updated_at column of the eta table
This commit is contained in:
parent
49b6e2fa58
commit
efa1a71512
@ -5,6 +5,6 @@ export async function updateETA(sql: Psql, aid: number, eta: number, speed: numb
|
||||
INSERT INTO eta (aid, eta, speed, current_views)
|
||||
VALUES (${aid}, ${eta}, ${speed}, ${views})
|
||||
ON CONFLICT (aid)
|
||||
DO UPDATE SET eta = ${eta}, speed = ${speed}, current_views = ${views}
|
||||
DO UPDATE SET eta = ${eta}, speed = ${speed}, current_views = ${views}, updated_at = now()
|
||||
`;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user