correct validation
This commit is contained in:
parent
304e4f314a
commit
d02085abea
1 changed files with 1 additions and 1 deletions
|
|
@ -1848,7 +1848,7 @@ module.exports = async (
|
|||
|
||||
const pageNum = Number(page)
|
||||
|
||||
if (isARealUsableNumber(pageNum)) {
|
||||
if (!isARealUsableNumber(pageNum)) {
|
||||
return res.status(400).json({
|
||||
field: 'page',
|
||||
errorMessage: 'Not a number'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue