fix: correct user retrieval in GetPricing function

This commit is contained in:
CalciumIon
2024-12-25 14:29:52 +08:00
parent 7c20e6d047
commit ba56e2e8ca

View File

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