patch fix for 3825
This commit is contained in:
parent
0889a1313d
commit
4e212d12b2
1 changed files with 8 additions and 1 deletions
|
@ -83,7 +83,11 @@ async function doImport(req, res, padId)
|
|||
}
|
||||
reject("uploadFailed");
|
||||
}
|
||||
resolve(files.file.path);
|
||||
if(!files.file){ // might not be a graceful fix but it works
|
||||
reject("uploadFailed");
|
||||
}else{
|
||||
resolve(files.file.path);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -148,6 +152,9 @@ async function doImport(req, res, padId)
|
|||
} else {
|
||||
// @TODO - no Promise interface for convertors (yet)
|
||||
await new Promise((resolve, reject) => {
|
||||
// Why are we running convertFile if it's been rejected?
|
||||
console.warn("john debug", reject);
|
||||
|
||||
convertor.convertFile(srcFile, destFile, exportExtension, function(err) {
|
||||
// catch convert errors
|
||||
if (err) {
|
||||
|
|
Loading…
Reference in a new issue