return page

This commit is contained in:
Daniel Lugo 2020-08-19 11:28:16 -04:00
parent 156514e067
commit d995cc428c

View file

@ -2243,7 +2243,8 @@ module.exports = async (
const posts = flatten(results)
return res.status(200).json({
posts
posts,
page: idx
})
}
@ -2253,6 +2254,7 @@ module.exports = async (
return res.status(205).json({
posts: results[0] || []
,page: 1
})
}