Skip to content

Commit

Permalink
fix: wait on processing on broken zip files
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Dec 15, 2024
1 parent 08df16f commit 18ccf43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/lib/zip/fallback/listFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ export async function listFiles(workspace: string) {
}

await explorePath(workspace);
console.log('files', files);
return files;
}
4 changes: 2 additions & 2 deletions src/lib/zip/zip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ZipHandler {

this.addCombinedHTMLToFiles(paying, settings);
} catch (error: unknown) {
this.handleZipError(error, zipData, paying);
await this.handleZipError(error, zipData, paying);
}
}

Expand Down Expand Up @@ -128,7 +128,7 @@ ${this.combinedHTML}
if (isArchiveProcessingError) {
const foundFiles = await processAndPrepareArchiveData(zipData, paying);
this.files.push(...foundFiles);
console.log('Processed files using fallback method:', this.files);
console.log('Processed files using fallback method:');
} else {
throw error;
}
Expand Down

0 comments on commit 18ccf43

Please sign in to comment.