fix: pageIndex等类型转化
This commit is contained in:
@@ -50,7 +50,7 @@ module.exports = {
|
|||||||
const { pageIndex = 1, pageSize = 0 } = req.query;
|
const { pageIndex = 1, pageSize = 0 } = req.query;
|
||||||
return await Action.find({
|
return await Action.find({
|
||||||
userId
|
userId
|
||||||
}, actionFilter).skip((pageIndex - 1) * pageSize).limit(pageSize)
|
}, actionFilter).skip((+pageIndex - 1) * +pageSize).limit(+pageSize)
|
||||||
.exec().then(data => {
|
.exec().then(data => {
|
||||||
return res.json({
|
return res.json({
|
||||||
code: 0,
|
code: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user