eventlog: getAll -> list
This commit is contained in:
@@ -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 }));
|
||||
|
||||
Reference in New Issue
Block a user