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

This commit is contained in:
CalciumIon 2024-12-25 14:29:52 +08:00
parent f9e06342c6
commit 314ad072ae

View File

@ -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
}