Skip to content

Commit

Permalink
modify status code for error
Browse files Browse the repository at this point in the history
relates #29
  • Loading branch information
MohammedAlghazali committed Mar 31, 2020
1 parent a4b2af5 commit d131a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/controllers/routes/admin/cohort/deleteCohort.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const deleteCohort = async (req, res, next) => {
data: { message: 'Cohort deleted successfully' },
});
} else {
res.status(400).json({
StatusCode: 400,
res.status(404).json({
StatusCode: 404,
data: { message: 'Cohort does not exist' },
});
}
Expand Down

0 comments on commit d131a1e

Please sign in to comment.