Skip to content

Commit

Permalink
Update pages/api/comments.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Jorge Orpinel <[email protected]>
  • Loading branch information
iAdramelk and jorgeorpinel committed Dec 4, 2019
1 parent 2fd68dd commit 6747a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const getCommentCount = (req, res) => {
const json = JSON.parse(body)

if (!json.posts_count) {
res.status(404).json({ error: "Forum's don't have 'posts_count' field" })
res.status(502).json({ error: "Unexpected payload from Forum" })

return
}
Expand Down

0 comments on commit 6747a20

Please sign in to comment.