wazo-confd - /sounds pagination is not accurate like other routes
Description
Steps to reproduce
Having 35 sounds in database for the routes /sounds in the same tenant
GET /sounds?limit=25
What you expected to see
total should be 35 and items in the payload to have a total of 25 items
What you saw instead
total is set to 25, total equal limit params passed since it’s lower than the total of element. Expect pagination been done manually (not database) so total do not return the exact total without filters.
Steps to reproduce
Having 35 sounds in database for the routes
/sounds
in the same tenantGET /sounds?limit=25
What you expected to see
total
should be35
anditems
in the payload to have a total of25
itemsWhat you saw instead
total
is set to25
,total
equallimit
params passed since it’s lower than the total of element. Expect pagination been done manually (not database) so total do not return the exact total without filters.