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
Hello.
If you try to post empty data via API, not React client application, the application will crash. The particular line in problem is in post.controller.js file, where you check if name, title or content are empty. The line:
res.status(403).end();
should abort execution. Possible solution could be:
return res.status(403).end();
but it raises eslint consistent-return warning.
The text was updated successfully, but these errors were encountered:
Hello.
If you try to post empty data via API, not React client application, the application will crash. The particular line in problem is in post.controller.js file, where you check if name, title or content are empty. The line:
res.status(403).end();
should abort execution. Possible solution could be:
return res.status(403).end();
but it raises eslint consistent-return warning.
The text was updated successfully, but these errors were encountered: