mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-10-02 08:50:11 +02: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 {
|
try {
|
||||||
const { id } = request.params;
|
const { id } = request.params;
|
||||||
await WorkspaceChats.delete({ id: Number(id) });
|
await WorkspaceChats.delete({ id: Number(id) });
|
||||||
response.status(200).json({ success, error });
|
response.sendStatus(200).end();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
response.sendStatus(500).end();
|
response.sendStatus(500).end();
|
||||||
|
Loading…
Reference in New Issue
Block a user