Skip to content

Commit

Permalink
Update projectController.js
Browse files Browse the repository at this point in the history
a error fix.
  • Loading branch information
iamrahimi authored Jan 20, 2025
1 parent cb9f649 commit 1af3ccf
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 1af3ccf

Please sign in to comment.