fix(backup): type the alias order as Prisma's mutable order list

This commit is contained in:
Marc-André Bombeck committed 2026-10-25 03:35:14 +01:00
1 parent d07f7f5bbf
commit 8fee138256
1 file changed
+4 -1
+4 -1
View File
@@ -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;