From 4f47b343b96d24e0956174a00303c60e1477b12d Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Mon, 2 Jan 2023 20:39:30 -0600 Subject: [PATCH] fix express response error --- src/server/express.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server/express.ts b/src/server/express.ts index 5f49576..092211b 100644 --- a/src/server/express.ts +++ b/src/server/express.ts @@ -10,13 +10,12 @@ export const STATUS_ALLOWED = 200; export const STATUS_DENIED = 403; export function sendLocks(res: Response, locks: Array, allow: boolean): void { - res.json({ locks }); if (allow) { res.status(STATUS_ALLOWED); } else { res.status(STATUS_DENIED); } - res.send(); + res.json({ locks }); } export async function expressIndex(context: ServerContext, app: Express, req: Request, res: Response): Promise {