mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-05 06:20:10 +01:00
fix success is not defined error (#484)
This commit is contained in:
parent
daadad3859
commit
1d9ba76b92
@ -792,7 +792,7 @@ function systemEndpoints(app) {
|
||||
try {
|
||||
const { id } = request.params;
|
||||
await WorkspaceChats.delete({ id: Number(id) });
|
||||
response.status(200).json({ success, error });
|
||||
response.sendStatus(200).end();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
response.sendStatus(500).end();
|
||||
|
Loading…
Reference in New Issue
Block a user