fix condition
This commit is contained in:
parent
b3c7ffccc8
commit
8ba70833f3
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ router.get(
|
||||||
const { before, count } = req.query;
|
const { before, count } = req.query;
|
||||||
|
|
||||||
let limit = typeof count === "string" ? parseInt(count || "25") : 25;
|
let limit = typeof count === "string" ? parseInt(count || "25") : 25;
|
||||||
if (limit === NaN) {
|
if (Number.isNaN(limit)) {
|
||||||
return res.status(400).json({ ...errors.INVALID_DATA });
|
return res.status(400).json({ ...errors.INVALID_DATA });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue