From f572e671cfee87997ac9c457161d08a9e69f78b0 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Thu, 7 Feb 2019 16:37:41 -0500 Subject: [PATCH] Lint --- server/homebrew.api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/homebrew.api.js b/server/homebrew.api.js index 4682f5987..c8c0e9122 100644 --- a/server/homebrew.api.js +++ b/server/homebrew.api.js @@ -68,13 +68,13 @@ router.get('/api/remove/:id', (req, res)=>{ HomebrewModel.find({ editId: req.params.id }, (err, objs)=>{ if(!objs.length || err) return res.status(404).send('Can not find homebrew with that id'); const brew = objs[0]; - + // Remove current user as author if(req.account){ brew.authors = _.pull(brew.authors, req.account.username); brew.markModified('authors'); } - + // Delete brew if there are no authors left if(!brew.authors.length) brew.remove((err)=>{