mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
feat(backup): carry per-schedule units-per-dose through backup and restore
The schedule exporter enumerates columns, so the new per-schedule units-per-dose needs adding by hand: export it as a Decimal string in the disaster-recovery payload, accept it in the wire schema, and write it back on restore (NULL stays NULL to inherit). Extend the round-trip test to prove a half-tablet slot survives export and re-import.
This commit is contained in:
1 parent
80958ab307
commit
08a1dbccac
4 files changed
+14
No files matched your search
@@ -581,6 +581,9 @@ const handler = apiHandler(
|
||||
windowEnd: s.windowEnd,
|
||||
label: s.label ?? null,
|
||||
dose: s.dose ?? null,
|
||||
// #219 — per-schedule units per dose. Prisma coerces the
|
||||
// Decimal string; NULL / absent stays NULL (inherit).
|
||||
unitsPerDose: s.unitsPerDose ?? null,
|
||||
daysOfWeek: s.daysOfWeek ?? null,
|
||||
timesOfDay: s.timesOfDay ?? [],
|
||||
reminderGraceMinutes: s.reminderGraceMinutes ?? null,
|
||||
|
||||
Reference in new issue
Block a user