mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
fix(backup): order the source aliases a deleted document's keys are read from
The backup export is totally ordered so two exports of the same account are byte-identical; the alias relation the import-key ledger reads was the one nested read without an order.
This commit is contained in:
1 parent
2b27b4b501
commit
3853ce7f1a
1 file changed
+2
@@ -45,6 +45,8 @@ export const SOURCE_KEY_SELECT = {
|
||||
sourceId: true,
|
||||
sourceInstance: true,
|
||||
sourceAliases: {
|
||||
// The backup reads through this select, and its export is totally ordered.
|
||||
orderBy: [{ createdAt: "asc" }, { id: "asc" }],
|
||||
select: { sourceSystem: true, sourceId: true, sourceInstance: true },
|
||||
},
|
||||
} as const;
|
||||
|
||||
Reference in new issue
Block a user