Parcourir la source

fix: the Redis problem in the CacheGetUsername function

fix: the Redis problem in the CacheGetUsername function
GAI Group il y a 2 ans
Parent
commit
6aadcf0c78
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      model/cache.go

+ 1 - 1
model/cache.go

@@ -74,7 +74,7 @@ func CacheGetUsername(id int) (username string, err error) {
 	}
 	username, err = common.RedisGet(fmt.Sprintf("user_name:%d", id))
 	if err != nil {
-		username, err = GetUserGroup(id)
+		username, err = GetUsernameById(id)
 		if err != nil {
 			return "", err
 		}