From 085faf73e7f7cc80a7bac444b1156e7847a37c1d Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 5 Jun 2024 21:53:59 +0300 Subject: [PATCH] fixed-redis-cache-5 --- server/memorystore/providers/redis/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/memorystore/providers/redis/store.go b/server/memorystore/providers/redis/store.go index 2765f3d..dd312a3 100644 --- a/server/memorystore/providers/redis/store.go +++ b/server/memorystore/providers/redis/store.go @@ -232,7 +232,7 @@ 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:%d", userId)).Result() + authorProfileString, err := c.store.Get(c.ctx, fmt.Sprintf("author:user:%s", userId)).Result() if err != nil { return "", err }