From 1a1c81a254124e211fa34604079bea5257ce20db Mon Sep 17 00:00:00 2001 From: kj1352 Date: Tue, 26 Oct 2021 15:40:24 +0530 Subject: [PATCH] minor bug fix --- src/user-profile/category-routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user-profile/category-routes.ts b/src/user-profile/category-routes.ts index 92c9436..279ffea 100644 --- a/src/user-profile/category-routes.ts +++ b/src/user-profile/category-routes.ts @@ -71,7 +71,7 @@ categoryRoutes.post('/add/', jwtAuthentication, async (request, response) => { } }); - response.send(200); + response.status(200); response.send(newCategory.insertedId.toHexString()); } catch(e) { response.sendStatus(500);