mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-10-04 01:40:12 +02:00
return statement misssing
This commit is contained in:
parent
a3d6d876c4
commit
8bae47b007
@ -79,11 +79,13 @@ function workspaceEndpoints(app) {
|
|||||||
error: `Python processing API is not online. Document ${originalname} will not be processed automatically.`,
|
error: `Python processing API is not online. Document ${originalname} will not be processed automatically.`,
|
||||||
})
|
})
|
||||||
.end();
|
.end();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { success, reason } = await processDocument(originalname);
|
const { success, reason } = await processDocument(originalname);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
response.status(500).json({ success: false, error: reason }).end();
|
response.status(500).json({ success: false, error: reason }).end();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
|
Loading…
Reference in New Issue
Block a user