1
0

fix: forgot to set updated_at column of the eta table

This commit is contained in:
alikia2x (寒寒) 2025-10-13 23:07:13 +08:00
parent 49b6e2fa58
commit efa1a71512

View File

@ -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()
`;
}