From ba56e2e8ca75fdd3d136fd850cc33f78f6982996 Mon Sep 17 00:00:00 2001 From: CalciumIon <1808837298@qq.com> Date: Wed, 25 Dec 2024 14:29:52 +0800 Subject: [PATCH] fix: correct user retrieval in GetPricing function --- controller/pricing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/pricing.go b/controller/pricing.go index cea24d7b..9862bb2f 100644 --- a/controller/pricing.go +++ b/controller/pricing.go @@ -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 }