You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 28, 2022. It is now read-only.
.then(
(post) => {
comments.disableByParent(req.token, post)
res.send(post)
},
(error) => {
console.error(error)
res.status(500).send({
error: 'There was an error.'
})
})
other wise console.log(data) before (data) => res.send(data) will get undefined, and if you try .then(res => res.json()) after fetch() in your api.js, you will get SyntaxError: Unexpected end of JSON input.
The text was updated successfully, but these errors were encountered:
should be
other wise
console.log(data)
before(data) => res.send(data)
will get undefined, and if you try.then(res => res.json())
afterfetch()
in your api.js, you will getSyntaxError: Unexpected end of JSON input
.The text was updated successfully, but these errors were encountered: