return statement misssing

This commit is contained in:
timothycarambat 2023-08-24 17:57:35 -07:00
parent a3d6d876c4
commit 8bae47b007

View File

@ -79,11 +79,13 @@ function workspaceEndpoints(app) {
error: `Python processing API is not online. Document ${originalname} will not be processed automatically.`,
})
.end();
return;
}
const { success, reason } = await processDocument(originalname);
if (!success) {
response.status(500).json({ success: false, error: reason }).end();
return;
}
console.log(