rename to listByTypePaged

This commit is contained in:
Girish Ramakrishnan
2018-12-11 16:10:38 -08:00
parent e0c9658cb9
commit fa483e5806
3 changed files with 9 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ 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) {
tasks.listByTypePaged(req.query.type || null, page, perPage, function (error, tasks) {
if (error) return next(new HttpError(500, error));
next(new HttpSuccess(200, { tasks }));