From 8fee138256392d51068bf0c4b5aa147b7059935e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 25 Oct 2026 03:35:14 +0100 Subject: [PATCH] fix(backup): type the alias order as Prisma's mutable order list --- src/lib/documents/tombstones.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/documents/tombstones.ts b/src/lib/documents/tombstones.ts index f6ee18c9d..dc92e4a0b 100644 --- a/src/lib/documents/tombstones.ts +++ b/src/lib/documents/tombstones.ts @@ -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;