Skip to content

Commit

Permalink
Merge d5371f6 into ab95184
Browse files Browse the repository at this point in the history
  • Loading branch information
UhiriweAudace committed Jul 17, 2019
2 parents ab95184 + d5371f6 commit 2d0501d
Show file tree
Hide file tree
Showing 4 changed files with 186 additions and 277 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: NODE_ENV=staging yarn start
web: NODE_ENV=staging yarn start
2 changes: 1 addition & 1 deletion src/api/controllers/articlesController.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class articlesController {
const allArticle = await articles.getAllArticle();

if (!allArticle[0]) {
return res.status(404).send({ error: 'Whoops! No Articles found!' });
return res.status(200).send({ message: 'Whoops! No Articles found!' });
}
res.status(200).send({
articles: allArticle
Expand Down
Loading

0 comments on commit 2d0501d

Please sign in to comment.