Skip to content

Commit e4aeaa3

Browse files
fix: return only message when no projects are found (#5011)
Signed-off-by: Ayush Sharma <[email protected]> Co-authored-by: Saranya Jena <[email protected]>
1 parent 66e8523 commit e4aeaa3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chaoscenter/authentication/api/handlers/rest/project_handler.go

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ func GetProjectsByUserID(service services.ApplicationService) gin.HandlerFunc {
138138
c.JSON(http.StatusOK, gin.H{
139139
"message": "No projects found",
140140
})
141+
return
141142
}
142143
if err != nil {
143144
log.Error(err)

0 commit comments

Comments
 (0)