eventlog: add params for from and to date

This commit is contained in:
Girish Ramakrishnan
2026-02-16 14:42:37 +01:00
parent aab20fd23e
commit 81659d4bf2
9 changed files with 145 additions and 26 deletions

View File

@@ -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) {