From 7cd84dbf02e70fc0b475b36b61fab5955cdf663a Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 22 Mar 2026 11:03:09 +0100 Subject: [PATCH] fix: map ArchiveFormat '7Z' to ArchiveType 'SEVEN_Z' in rebuild Co-Authored-By: Claude Opus 4.6 (1M context) --- worker/src/rebuild.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/src/rebuild.ts b/worker/src/rebuild.ts index 8116ca7..3bfaad5 100644 --- a/worker/src/rebuild.ts +++ b/worker/src/rebuild.ts @@ -172,7 +172,7 @@ export async function rebuildPackageDatabase( // We don't have the source message or content hash, so generate a placeholder hash const placeholderHash = `rebuild:${destChannel.id}:${destMessageId}`; const creator = extractCreatorFromFileName(fileName) ?? null; - const archiveType = archiveSet.type; + const archiveType = archiveSet.type === "7Z" ? "SEVEN_Z" as const : archiveSet.type as "ZIP" | "RAR" | "DOCUMENT"; // We need a sourceChannelId (required FK). Use fallback if available. if (!fallbackSourceId) {