You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you check the response of this request https://api.elma.online/api/replay?page=0&pageSize=25&sortBy=uploaded&order=desc&levelPack=0 you can see that there's something wrong with it. It is returning almost 12k items in the count property. Rows property seems to have properly those 25 items you asked for, but shouldn't the count simply be the total number of results, not an array of all the results?
The text was updated successfully, but these errors were encountered:
When group is not provided, the findAndCountAll method returns an object with two properties:
count - an integer - the total number records matching the query
rows - an array of objects - the obtained records
When group is provided, the findAndCountAll method returns an object with two properties:
count - an array of objects - contains the count in each group and the projected attributes
rows - an array of objects - the obtained records
Don't remember why that group is there but maybe should just use findAll and get count with another query (Replay.count() or something) if grouping is needed.
If you check the response of this request https://api.elma.online/api/replay?page=0&pageSize=25&sortBy=uploaded&order=desc&levelPack=0 you can see that there's something wrong with it. It is returning almost 12k items in the count property. Rows property seems to have properly those 25 items you asked for, but shouldn't the count simply be the total number of results, not an array of all the results?
The text was updated successfully, but these errors were encountered: