fix: map ArchiveFormat '7Z' to ArchiveType 'SEVEN_Z' in rebuild
All checks were successful
continuous-integration/drone/push Build is passing

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
admin
2026-03-22 11:03:09 +01:00
parent c00fc528ac
commit 7cd84dbf02

View File

@@ -172,7 +172,7 @@ export async function rebuildPackageDatabase(
// We don't have the source message or content hash, so generate a placeholder hash // We don't have the source message or content hash, so generate a placeholder hash
const placeholderHash = `rebuild:${destChannel.id}:${destMessageId}`; const placeholderHash = `rebuild:${destChannel.id}:${destMessageId}`;
const creator = extractCreatorFromFileName(fileName) ?? null; 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. // We need a sourceChannelId (required FK). Use fallback if available.
if (!fallbackSourceId) { if (!fallbackSourceId) {