From fa1a5192cbe44f73932daf1fdd5cf9c1d383175d Mon Sep 17 00:00:00 2001 From: lesion Date: Fri, 22 Mar 2019 00:20:47 +0100 Subject: [PATCH] minor --- app/controller/event.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/event.js b/app/controller/event.js index 66d187b1..84f9c578 100644 --- a/app/controller/event.js +++ b/app/controller/event.js @@ -80,9 +80,9 @@ const eventController = { // insert notification const notifications = await eventController.getNotifications(event) await event.setNotifications(notifications) - res.send(200) + res.sendStatus(200) } catch (e) { - res.send(404) + res.sendStatus(404) } },