Skip to content

Commit

Permalink
fix printing wrong error in notification_user_controller.go
Browse files Browse the repository at this point in the history
  • Loading branch information
konrad2002 committed Dec 5, 2024
1 parent 46e19a6 commit 98d044a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/notification_user_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func getNotificationUser(c *gin.Context) {

notificationUser, err2 := service.GetNotificationUserById(user.Identifier)
if err2 != nil {
c.IndentedJSON(http.StatusNotFound, gin.H{"message": err.Error()})
c.IndentedJSON(http.StatusNotFound, gin.H{"message": err2.Error()})
return
}

Expand Down

0 comments on commit 98d044a

Please sign in to comment.