Skip to content

Commit

Permalink
Merge pull request #27 from Code-the-Dream-School/error_fix_03_delete…
Browse files Browse the repository at this point in the history
…_project

Update projectController.js
  • Loading branch information
iamrahimi authored Jan 20, 2025
2 parents cb9f649 + 1af3ccf commit 55ca531
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controllers/projectController.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ const projectController = {
parseInt(user_id, 10),
parseInt(project_id, 10)
);

return res.status(200).json(result);
}else {
return res.status(405).json({
success: false,
Expand All @@ -262,7 +264,7 @@ const projectController = {
}


return res.status(200).json(result);

} catch (error) {
return res.status(500).json({
success: false,
Expand Down

0 comments on commit 55ca531

Please sign in to comment.