feat: closes #12453, filter events by user/group

This commit is contained in:
Barış Soner Uşaklı
2024-04-01 18:19:58 -04:00
parent 73f985684c
commit 4030f18a04
8 changed files with 191 additions and 22 deletions

View File

@@ -687,7 +687,7 @@ describe('socket.io', () => {
await socketUser.reset.send({ uid: 0 }, 'regular@test.com');
const [count, eventsData] = await Promise.all([
db.sortedSetCount('reset:issueDate', 0, Date.now()),
events.getEvents('', 0, 0),
events.getEvents({ filter: '', start: 0, stop: 0 }),
]);
assert.strictEqual(count, 2);
@@ -705,7 +705,7 @@ describe('socket.io', () => {
);
const [count, eventsData] = await Promise.all([
db.sortedSetCount('reset:issueDate', 0, Date.now()),
events.getEvents('', 0, 0),
events.getEvents({ filter: '', start: 0, stop: 0 }),
]);
assert.strictEqual(count, 2);