Remove useless parseInt from findPageQueryFactory.js

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
This commit is contained in:
Convly 2020-05-19 11:09:35 +02:00 committed by Alexandre Bodin
parent c9b02b2e25
commit 08d121cd2d

View File

@ -14,8 +14,8 @@ const findPageQueryFactory = (find, count) => async (queryParams, ...args) => {
const total = await count(params);
const pagination = {
page: parseInt(page),
pageSize: parseInt(pageSize),
page,
pageSize,
pageCount: Math.ceil(total / pageSize),
total,
};