diff --git a/src/events.js b/src/events.js index 09c9062ae8..53f1e160ac 100644 --- a/src/events.js +++ b/src/events.js @@ -101,10 +101,10 @@ events.log = async function (data) { events.getEvents = async function (filter, start, stop, from, to) { // from/to optional if (from === undefined) { - from = 0; + from = '-inf'; } if (to === undefined) { - to = Date.now(); + to = '+inf'; } const eids = await db.getSortedSetRevRangeByScore(`events:time${filter ? `:${filter}` : ''}`, start, stop - start + 1, to, from);