From c5e53b14cb228b77b0db753343fe4194d85b1e8f Mon Sep 17 00:00:00 2001 From: Charles GTE Date: Sat, 11 Jul 2026 11:33:47 +0200 Subject: [PATCH] fix --- src/features/database/utils/archive-inspect.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/features/database/utils/archive-inspect.ts b/src/features/database/utils/archive-inspect.ts index 2d84a4df..8d2addda 100644 --- a/src/features/database/utils/archive-inspect.ts +++ b/src/features/database/utils/archive-inspect.ts @@ -10,12 +10,7 @@ export type UploadKind = "raw" | "targz" | "wrap"; export type InspectResult = { kind: UploadKind; - /** Extension to use when naming the stored file, incl. leading dot. */ storeExtension: string; - /** - * For kind === "wrap": the entry name to give the dump inside the generated - * tar.gz (e.g. "backup.dump"). - */ innerName?: string; }; @@ -108,12 +103,6 @@ export async function inspectUpload( return { kind: "targz", storeExtension: ".tar.gz" }; } -/** - * Compresses a single raw dump buffer into a gzip'd tar containing one entry - * named `innerName`. Used to normalize native frontend uploads into the same - * `.tar.gz` shape the agent produces. The whole archive is built in memory, - * consistent with the existing upload path that already holds the full buffer. - */ export function packToTarGz(buffer: Buffer, innerName: string): Promise { return new Promise((resolve, reject) => { const pack = tar.pack();