fix: correct user retrieval in GetPricing function
Some checks failed
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
Some checks failed
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
This commit is contained in:
parent
f9e06342c6
commit
314ad072ae
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user