mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-10 22:01:16 +00:00
fix: map ArchiveFormat '7Z' to ArchiveType 'SEVEN_Z' in rebuild
All checks were successful
continuous-integration/drone/push Build is passing
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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user