feat: implement resolvers
This commit is contained in:
@@ -31,7 +31,7 @@ func UserInfoHandler() gin.HandlerFunc {
|
||||
}
|
||||
|
||||
userID := claims["sub"].(string)
|
||||
user, err := db.Provider.GetUserByID(userID)
|
||||
user, err := db.Provider.GetUserByID(gc, userID)
|
||||
if err != nil {
|
||||
log.Debug("Error getting user: ", err)
|
||||
gc.JSON(http.StatusUnauthorized, gin.H{
|
||||
|
Reference in New Issue
Block a user