Commit 314ad072 by CalciumIon

fix: correct user retrieval in GetPricing function

parent f9e06342
...@@ -16,7 +16,7 @@ func GetPricing(c *gin.Context) { ...@@ -16,7 +16,7 @@ func GetPricing(c *gin.Context) {
} }
var group string var group string
if exists { if exists {
user, err := model.GetChannelById(userId.(int), false) user, err := model.GetUserById(userId.(int), false)
if err == nil { if err == nil {
group = user.Group group = user.Group
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment