From a9566a2a06bf1960f57154fc194f848441658b6e Mon Sep 17 00:00:00 2001 From: chaosBreaking Date: Sat, 7 Sep 2019 17:24:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20pageIndex=E7=AD=89=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E8=BD=AC=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/fund/fund.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/fund/fund.controller.js b/src/modules/fund/fund.controller.js index 8f460db..445356c 100644 --- a/src/modules/fund/fund.controller.js +++ b/src/modules/fund/fund.controller.js @@ -50,7 +50,7 @@ module.exports = { const { pageIndex = 1, pageSize = 0 } = req.query; return await Action.find({ userId - }, actionFilter).skip((pageIndex - 1) * pageSize).limit(pageSize) + }, actionFilter).skip((+pageIndex - 1) * +pageSize).limit(+pageSize) .exec().then(data => { return res.json({ code: 0,