Fix post-import cleanup

This commit is contained in:
Iván Ovejero 2024-10-11 13:19:14 +02:00
parent c11af8ea97
commit c93ba01fc7
No known key found for this signature in database

View file

@ -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();