Procházet zdrojové kódy

fix: correct user retrieval in GetPricing function

CalciumIon před 1 rokem
rodič
revize
ba56e2e8ca
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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
 		}