From 65669e52d260dfb3684015189cf7f79777666af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Wed, 14 Oct 2026 19:19:27 +0200 Subject: [PATCH] fix(withings): bind the plan-state timestamp instead of reading the database clock --- src/lib/withings/api-plan.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/withings/api-plan.ts b/src/lib/withings/api-plan.ts index f7fc39d77..50704a36e 100644 --- a/src/lib/withings/api-plan.ts +++ b/src/lib/withings/api-plan.ts @@ -299,7 +299,7 @@ export async function persistWithingsPlanLeg( ) || jsonb_build_object('version', 1) || jsonb_build_object(${leg}::text, ${value}::jsonb), - "updated_at" = NOW() + "updated_at" = ${new Date()} WHERE "user_id" = ${userId}`; annotate({ meta: {