Skip to content

Commit

Permalink
Merge pull request #149 from ReflectionsProjections/dev/alex/filter-p…
Browse files Browse the repository at this point in the history
…agnation

60 p
  • Loading branch information
AydanPirani authored Sep 11, 2024
2 parents 800cd35 + 003085d commit 556875a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/registration/registration-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ registrationRouter.post(
);

return res.status(StatusCodes.OK).json({
pagecount: Math.floor((registrants.length + 49) / 50),
pagecount: Math.floor((registrants.length + 59) / 60),
});
} catch (error) {
next(error);
Expand Down Expand Up @@ -235,7 +235,7 @@ registrationRouter.post(
const registrants = await Database.REGISTRATION.find(
query,
projection,
{ skip: 50 * (page - 1), limit: 50 }
{ skip: 60 * (page - 1), limit: 60 }
);

return res.status(StatusCodes.OK).json({ registrants, page });
Expand Down

0 comments on commit 556875a

Please sign in to comment.