fixed-redis-debug
All checks were successful
deploy / deploy (push) Successful in 1m31s

This commit is contained in:
Untone 2024-06-05 22:01:24 +03:00
parent 085faf73e7
commit 641c5bc248

View File

@ -232,8 +232,11 @@ type AuthorProfile struct {
// and assigns the JSON string to the provided user's ID.
func (c *provider) GetUserAppDataFromRedis(userId string) (string, error) {
// Получаем профиль автора из Redis
authorProfileString, err := c.store.Get(c.ctx, fmt.Sprintf("author:user:%s", userId)).Result()
rkey := fmt.Sprintf("author:user:%s", userId)
authorProfileString, err := c.store.Get(c.ctx, rkey).Result()
if err != nil {
fmt.Println("redis GET: %s", rkey)
fmt.Println("%s", authorProfileString)
return "", err
}