Skip to content

Commit

Permalink
fix: correct user retrieval in GetPricing function
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed Dec 25, 2024
1 parent 7c20e6d commit ba56e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/pricing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ba56e2e

Please sign in to comment.