I believe the HeadlessService.fetchNotifications returns as totalCountthe number of elements fetched and not the number of total elements.
π Reproduction steps
Fetch notifications with the HeadlessService.fetchNotifications method, and pass a query limit of 1 -> totalCount= 1
Fetch notifications with the HeadlessService.fetchNotifications method, and pass a different query limit -> totalCountis different (number of data returned)
π Expected behavior
I would expect that totalCount returns the count of all notifications and not only number of returned elements.
π Actual Behavior with Screenshots
It seems to return the count of the elements returned in the response.
Novu version
Novu SaaS
npm version
@novu/headless": "0.23.1"
node version
No response
π Provide any additional context for the Bug.
No response
π Have you spent some time to check if this bug has been raised before?
π Description
I believe the
HeadlessService.fetchNotifications
returns astotalCount
the number of elements fetched and not the number of total elements.π Reproduction steps
HeadlessService.fetchNotifications
method, and pass a query limit of 1 ->totalCount
= 1HeadlessService.fetchNotifications
method, and pass a different query limit ->totalCount
is different (number of data returned)π Expected behavior
I would expect that
totalCount
returns the count of all notifications and not only number of returned elements.π Actual Behavior with Screenshots
It seems to return the count of the elements returned in the response.
Novu version
Novu SaaS
npm version
@novu/headless": "0.23.1"
node version
No response
π Provide any additional context for the Bug.
No response
π Have you spent some time to check if this bug has been raised before?
π’ Have you read the Contributing Guidelines?
Are you willing to submit PR?
None