From b9dacb35ff90c6f666121742cf03f30ea4d2129d Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Sun, 22 Jun 2014 20:33:26 -0400 Subject: fix proj deletion --- server/lib/api/projects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/lib/api/projects.js') diff --git a/server/lib/api/projects.js b/server/lib/api/projects.js index 32be88c..fc54a5f 100644 --- a/server/lib/api/projects.js +++ b/server/lib/api/projects.js @@ -101,7 +101,7 @@ var projects = { destroy: function(req, res){ var _id = req.body._id - if (! id || ! id.length) { + if (! _id || ! _id.length) { res.json({ error: 404 }) return } -- cgit v1.2.3-70-g09d2