From f3fe56e3d5f6114f2e0a704a8f5d833dc6639660 Mon Sep 17 00:00:00 2001 From: Abhinav Adduri Date: Mon, 19 Jun 2017 16:11:33 -0700 Subject: [PATCH] fixed delete bug --- server/portal_server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/portal_server.js b/server/portal_server.js index 52883425..c6f74c68 100644 --- a/server/portal_server.js +++ b/server/portal_server.js @@ -104,7 +104,7 @@ app.post('/delete/:id', (req, res) => { storage .delete(id, delete_token) - .then(() => { + .then((err) => { if (!err) { log.info('Deleted:', id); res.sendStatus(200);