has to be parsed
This commit is contained in:
parent
1d59e59cf1
commit
c9cbe2bf28
1 changed files with 2 additions and 1 deletions
|
|
@ -1975,7 +1975,8 @@ module.exports = async (
|
||||||
*/
|
*/
|
||||||
const apiGunFeedGet = async (req, res) => {
|
const apiGunFeedGet = async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const { page } = req.query;
|
const { pageStr } = req.query;
|
||||||
|
const page = Number(pageStr)
|
||||||
|
|
||||||
if (!isARealUsableNumber(page)) {
|
if (!isARealUsableNumber(page)) {
|
||||||
return res.status(400).json({
|
return res.status(400).json({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue