From 42be528c906d6566434f95a04cb69ce23a2cf3b9 Mon Sep 17 00:00:00 2001 From: Daniela Arcese Date: Thu, 8 Jun 2017 17:38:00 -0400 Subject: [PATCH] return 200 from server on successful delete --- server/portal_server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/portal_server.js b/server/portal_server.js index 5b2585f2..62e234aa 100644 --- a/server/portal_server.js +++ b/server/portal_server.js @@ -100,6 +100,7 @@ app.post('/delete/:id', (req, res) => { .then(err => { if (!err) { console.log('Deleted.'); + res.sendStatus(200); } }) .catch(err => res.sendStatus(404));