Cannot use loadEvents with startTime and endTime #2147
Labels
bug
Issues related to defects and incorrect/unexpected feature behavior
severity: major
Issues with high impact on the product, e.g., new packages, installation issues, etc.
To Reproduce
Steps to reproduce the behavior:
Execute the following code in api-handler:
const eventFilter = {
startTime: new Date('2021-09-16T09:00:00').getTime() / 1000,
endTime: new Date('2021-11-20T09:30:00').getTime() / 1000,
limit: 2000,
eventsSizeLimit: Number.MAX_SAFE_INTEGER,
eventTypes: [
UPLOAD_CREATED
]
};
const result = await req.resolve.eventstoreAdapter.loadEvents(eventFilter);
await res.json(result);
Expected behavior
The list of events is returned.
The text was updated successfully, but these errors were encountered: