From 6d66eb7759b93bdb6f010b1e6b2c109d1c0feaf5 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sat, 8 Dec 2018 21:12:49 -0800 Subject: [PATCH] Various fixes --- src/routes/tasks.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/routes/tasks.js b/src/routes/tasks.js index e6ae15dca..880a18104 100644 --- a/src/routes/tasks.js +++ b/src/routes/tasks.js @@ -50,7 +50,6 @@ function list(req, res, next) { if (req.query.type && typeof req.query.type !== 'string') return next(new HttpError(400, 'type must be a string')); tasks.listPaged(req.query.type || null, page, perPage, function (error, tasks) { - if (error && error.reason === TaskError.NOT_FOUND) return next(new HttpError(404, 'No such task')); if (error) return next(new HttpError(500, error)); next(new HttpSuccess(200, { tasks }));