Skip to content

Bug in pagination helper code #107

@Sukriti-sood

Description

@Sukriti-sood

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    GSSOC21for GSSoC participants

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions