eventlog: add params for from and to date
This commit is contained in:
13
src/apps.js
13
src/apps.js
@@ -1466,14 +1466,19 @@ async function listBackups(app, page, perPage) {
|
||||
return await backups.listByIdentifierAndStatePaged(app.id, backups.BACKUP_STATE_NORMAL, page, perPage);
|
||||
}
|
||||
|
||||
async function listEventlog(app, page, perPage) {
|
||||
async function listEventlog(app, filter, page, perPage) {
|
||||
assert.strictEqual(typeof app, 'object');
|
||||
assert.strictEqual(typeof filter, 'object');
|
||||
assert.strictEqual(typeof page, 'number');
|
||||
assert.strictEqual(typeof perPage, 'number');
|
||||
|
||||
const actions = [];
|
||||
const search = app.id;
|
||||
return await eventlog.listPaged(actions, search, page, perPage);
|
||||
const fullFilter = {
|
||||
actions: [],
|
||||
search: app.id,
|
||||
from: filter.from,
|
||||
to: filter.to
|
||||
};
|
||||
return await eventlog.listPaged(fullFilter, page, perPage);
|
||||
}
|
||||
|
||||
async function drainStream(stream) {
|
||||
|
||||
Reference in New Issue
Block a user