Skip to content
Snippets Groups Projects
Commit 8bae47b0 authored by timothycarambat's avatar timothycarambat
Browse files

return statement misssing

parent a3d6d876
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment