eventlog: getAll -> list

This commit is contained in:
Girish Ramakrishnan
2021-08-20 11:27:35 -07:00
parent aa6b845c9c
commit dd16866e5a
4 changed files with 11 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ async function list(req, res, next) {
const actions = req.query.actions ? req.query.actions.split(',').map(function (s) { return s.trim(); }) : [];
if (req.query.action) actions.push(req.query.action);
const [error, eventlogs] = await safe(eventlog.getAllPaged(actions, req.query.search || null, page, perPage));
const [error, eventlogs] = await safe(eventlog.listPaged(actions, req.query.search || null, page, perPage));
if (error) return next(BoxError.toHttpError(error));
next(new HttpSuccess(200, { eventlogs }));