From c93ba01fc7640ba0444a893047b2dc07699a0f5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Fri, 11 Oct 2024 13:19:14 +0200 Subject: [PATCH] Fix post-import cleanup --- .../src/databases/import-export/database-import.service.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/databases/import-export/database-import.service.ts b/packages/cli/src/databases/import-export/database-import.service.ts index 811f433d72..a01a5c33a2 100644 --- a/packages/cli/src/databases/import-export/database-import.service.ts +++ b/packages/cli/src/databases/import-export/database-import.service.ts @@ -31,7 +31,7 @@ export class DatabaseImportService { }; /** Paths to files extracted from the tarball. */ - private readonly extractFilePaths: string[] = []; + private extractFilePaths: string[] = []; private manifest: Manifest; @@ -82,7 +82,10 @@ export class DatabaseImportService { if (dbType !== 'postgresdb') throw new UnsupportedDestinationError(dbType); - await this.fsService.extractTarball(this.config.importFilePath, this.config.extractDirPath); + this.extractFilePaths = await this.fsService.extractTarball( + this.config.importFilePath, + this.config.extractDirPath, + ); this.manifest = await this.getManifest();