refactor: Optimize user caching and token retrieval methods
This commit is contained in:
1 parent
83e161a1d4
commit
1ae0a38485
7 files changed
+21
-8
No files matched your search
@@ -17,7 +17,7 @@ func GetPricing(c *gin.Context) {
|
||||
}
|
||||
var group string
|
||||
if exists {
|
||||
user, err := model.GetUserById(userId.(int), false)
|
||||
user, err := model.GetUserCache(userId.(int))
|
||||
if err == nil {
|
||||
group = user.Group
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user