mirror of
https://github.com/strapi/strapi.git
synced 2025-12-04 02:51:26 +00:00
Remove useless parseInt from findPageQueryFactory.js
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
This commit is contained in:
parent
c9b02b2e25
commit
08d121cd2d
@ -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,
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user