users: getAll -> list

This commit is contained in:
Girish Ramakrishnan
2021-08-20 11:30:35 -07:00
parent dd16866e5a
commit 7ba3203625
5 changed files with 21 additions and 21 deletions

View File

@@ -100,7 +100,7 @@ async function list(req, res, next) {
if (req.query.search && typeof req.query.search !== 'string') return next(new HttpError(400, 'search must be a string'));
let [error, results] = await safe(users.getAllPaged(req.query.search || null, page, perPage));
let [error, results] = await safe(users.listPaged(req.query.search || null, page, perPage));
if (error) return next(BoxError.toHttpError(error));
results = results.map(users.removeRestrictedFields);