Skip to content

Commit

Permalink
fix: return only message when no projects are found (#5011)
Browse files Browse the repository at this point in the history
Signed-off-by: Ayush Sharma <[email protected]>
Co-authored-by: Saranya Jena <[email protected]>
  • Loading branch information
ayush3160 and Saranya-jena authored Jan 15, 2025
1 parent 66e8523 commit e4aeaa3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func GetProjectsByUserID(service services.ApplicationService) gin.HandlerFunc {
c.JSON(http.StatusOK, gin.H{
"message": "No projects found",
})
return
}
if err != nil {
log.Error(err)
Expand Down

0 comments on commit e4aeaa3

Please sign in to comment.