fix success is not defined error (#484)

This commit is contained in:
Sean Hatfield 2023-12-21 10:31:14 -08:00 committed by GitHub
parent daadad3859
commit 1d9ba76b92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();