@davoodmehraban89 / LifeMate / commits / 9089c4e
Fork 0

LifeMate — Personal, Family & Learning Companion

fix: type reminder base timestamp explicitly

davoodmehraban89 committed Oct 5, 2026 at 15:13 UTC 9089c4e266b147dfb5957a7aee79ad5e7e249b7f
1 file changed +1 -1
backend/src/phase3.js
+1 -1
@@ -168,7 +168,7 @@ export function createPhase3Router({ pool, auth }) {
168 if (!Number.isInteger(minutes) || minutes < 0 || minutes > 10080) continue;
169 await client.query(
170 `insert into reminder(plan_item_id,owner_user_id,minutes_before,scheduled_for)
171 - values($1,$2,$3,$4 - make_interval(mins => $3))
171 + values($1,$2,$3,$4::timestamptz - make_interval(mins => $3))
172 on conflict(plan_item_id,owner_user_id,minutes_before)
173 do update set scheduled_for=excluded.scheduled_for,status='scheduled',claimed_at=null`,
174 [item.id, req.identity.sub, minutes, baseTime],