From b17544961a59b3f0df02f5100488dbc1f73a02c0 Mon Sep 17 00:00:00 2001 From: Juan Miguel Sanchez Mola Date: Mon, 18 Nov 2024 11:03:19 -0400 Subject: [PATCH] Cast to number --- rair-node/bin/api/users/users.Service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rair-node/bin/api/users/users.Service.js b/rair-node/bin/api/users/users.Service.js index b5b566be..9257c1e0 100644 --- a/rair-node/bin/api/users/users.Service.js +++ b/rair-node/bin/api/users/users.Service.js @@ -97,7 +97,7 @@ exports.listUsers = async (req, res, next) => { $facet: { list: [ { $skip: pageNum * itemsPerPage }, - { $limit: itemsPerPage }, + { $limit: Number(itemsPerPage) }, ], count: [ { $count: 'total' },