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