Bug in pagination helper code
Sukriti-sood opened this issue · comments
Sukriti Sood commented
In PAgination Helper Code :-
- There are some unnecessary variable used
- Logic for total pages is also wrong
if (numDocs >= limit) { totalPages = Math.floor(numDocs / limit) + (numDocs % limit); }
- It was not filtering Opportunities On the Basis of Opportunity-Type.
This issue has been resolve in PR of GET API TEST #97