Parcourir la source

fix: correct user retrieval in GetPricing function

CalciumIon il y a 1 an
Parent
commit
ba56e2e8ca
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      controller/pricing.go

+ 1 - 1
controller/pricing.go

@@ -16,7 +16,7 @@ func GetPricing(c *gin.Context) {
 	}
 	var group string
 	if exists {
-		user, err := model.GetChannelById(userId.(int), false)
+		user, err := model.GetUserById(userId.(int), false)
 		if err == nil {
 			group = user.Group
 		}