mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
fix(withings): bind the plan-state timestamp instead of reading the database clock
This commit is contained in:
1 parent
4793edb961
commit
65669e52d2
1 file changed
+1
-1
@@ -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: {
|
||||
|
||||
Reference in new issue
Block a user