Skip to content

Commit

Permalink
fix: await reading of zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelblijleven committed Oct 2, 2023
1 parent 4b8c606 commit 2d3606b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/beanconqueror/upload/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ export async function readZipFile(file: File) {
}

export async function readZipFileWithCallback(file: File, callback: (data: any) => void) {
const baseData = readZipFile(file);
const baseData = await readZipFile(file);
callback(baseData);
}

0 comments on commit 2d3606b

Please sign in to comment.