Use provided timeoutMS

This commit is contained in:
Manav Rathi 2024-05-07 20:16:59 +05:30
parent 63c3842770
commit 0949f32638
No known key found for this signature in database

View file

@ -69,7 +69,7 @@ export const ffmpegExec = async (
outputFilePath,
);
if (timeoutMS) await withTimeout(execAsync(cmd), 30 * 1000);
if (timeoutMS) await withTimeout(execAsync(cmd), timeoutMS);
else await execAsync(cmd);
return fs.readFile(outputFilePath);