We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b7e62 commit 4ad7892Copy full SHA for 4ad7892
src/converters/main.ts
@@ -131,8 +131,8 @@ export async function handleConvert(
131
132
133
for (const chunk of chunks(fileNames, MAX_CONVERT_PROCESS)) {
134
+ const toProcess: Promise<string>[] = [];
135
for(const fileName of chunk) {
- const toProcess: Promise<string>[] = [];
136
const filePath = `${userUploadsDir}${fileName}`;
137
const fileTypeOrig = fileName.split(".").pop() ?? "";
138
const fileType = normalizeFiletype(fileTypeOrig);
@@ -159,9 +159,8 @@ export async function handleConvert(
159
}).catch(c => reject(c));
160
})
161
);
162
-
163
- await Promise.all(toProcess);
164
}
+ await Promise.all(toProcess);
165
166
167
0 commit comments