Skip to content

Commit

Permalink
Merge pull request #126 from CheesecakeLabs/fix-profile-endpoint
Browse files Browse the repository at this point in the history
Fix: Profile endpoint status code error
  • Loading branch information
alessandrak authored Feb 26, 2024
2 parents fd21856 + 55b946b commit 092e5d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/internal/controller/http/v1/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func (r *usersRoutes) getProfile(c *gin.Context) {
profile, err := r.t.GetProfile(token)
if err != nil {
r.l.Error(err, "http - v1 - getProfile - GetProfile")
errorResponse(c, http.StatusInternalServerError, "database problems", err)
errorResponse(c, http.StatusUnauthorized, "database problems", err)
return
}

Expand Down

0 comments on commit 092e5d0

Please sign in to comment.