mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 22:50:51 +00:00
Carry the custom-metric entry tombstone through backup and restore
The entries gained a soft-delete this release; both backup ends follow in the same one. A portable export omits tombstoned readings so a restore cannot resurrect them; a disaster-recovery payload carries the tombstone and the restore writes it back, so the account returns exactly as it stood — undo affordance included.
This commit is contained in:
1 parent
bcabd43ca7
commit
4941cd075b
2 files changed
+14
-1
No files matched your search
@@ -611,6 +611,9 @@ const customMetricEntryBackupSchema = z
|
||||
measuredAt: isoDateTime,
|
||||
note: z.string().nullable().default(null),
|
||||
createdAt: isoDateTime.optional(),
|
||||
/// v1.37.20 (A3-11) — the entry tombstone rides DR payloads so a restore
|
||||
/// brings the account back exactly as it stood, undo affordance included.
|
||||
deletedAt: isoDateTime.nullable().optional(),
|
||||
})
|
||||
.passthrough();
|
||||
|
||||
|
||||
Reference in new issue
Block a user