fix: correct user retrieval in GetPricing function
This commit is contained in:
1 parent
f9e06342c6
commit
314ad072ae
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user