correct function
This commit is contained in:
parent
6da9612236
commit
f5eefd0afc
1 changed files with 1 additions and 1 deletions
|
|
@ -1977,7 +1977,7 @@ module.exports = async (
|
|||
try {
|
||||
const { page } = req.query;
|
||||
|
||||
if (!isFinite(page)) {
|
||||
if (!isARealUsableNumber(page)) {
|
||||
return res.status(400).json({
|
||||
field: page,
|
||||
errorMessage: 'page must be a number'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue