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 {
|
try {
|
||||||
const { page } = req.query;
|
const { page } = req.query;
|
||||||
|
|
||||||
if (!isFinite(page)) {
|
if (!isARealUsableNumber(page)) {
|
||||||
return res.status(400).json({
|
return res.status(400).json({
|
||||||
field: page,
|
field: page,
|
||||||
errorMessage: 'page must be a number'
|
errorMessage: 'page must be a number'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue