-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Events API null total #13
Comments
This looks like a bug indeed. Feel free to open a PR. Given that it requires a secondary query to ClickHouse, we may want to have the total only be shown if it’s needed and add a flag / query param for it. |
Can't trench/apps/trench/src/events/events.dao.ts Lines 93 to 98 in 0e243b4
|
The total is meant to reflect the total amount of results to be used with pagination (e.g. calculating total number of pages to show an end user). |
@christianmat I would like to open a PR for this |
@tuminzee go for it :) |
I am working through the quickstart and am getting
total": null
when using the Get Events API. The docs say "If null, the total is unknown" but I don't think this should be the case since ClickHouse contains only one event.The text was updated successfully, but these errors were encountered: