mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 13:01:00 +00:00
fix(backup): type the alias order as Prisma's mutable order list
This commit is contained in:
1 parent
d07f7f5bbf
commit
8fee138256
1 file changed
+4
-1
@@ -46,7 +46,10 @@ export const SOURCE_KEY_SELECT = {
|
||||
sourceInstance: true,
|
||||
sourceAliases: {
|
||||
// The backup reads through this select, and its export is totally ordered.
|
||||
orderBy: [{ createdAt: "asc" }, { id: "asc" }],
|
||||
orderBy: [
|
||||
{ createdAt: "asc" },
|
||||
{ id: "asc" },
|
||||
] as Prisma.DocumentSourceAliasOrderByWithRelationInput[],
|
||||
select: { sourceSystem: true, sourceId: true, sourceInstance: true },
|
||||
},
|
||||
} as const;
|
||||
|
||||
Reference in new issue
Block a user