fix: pageIndex等类型转化
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user