Skip to content

Commit 1d9ba76

Browse files
authored
fix success is not defined error (#484)
1 parent daadad3 commit 1d9ba76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/endpoints/system.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ function systemEndpoints(app) {
792792
try {
793793
const { id } = request.params;
794794
await WorkspaceChats.delete({ id: Number(id) });
795-
response.status(200).json({ success, error });
795+
response.sendStatus(200).end();
796796
} catch (e) {
797797
console.error(e);
798798
response.sendStatus(500).end();

0 commit comments

Comments
 (0)