From 693f252ae90d27ec4f5740c38fc101cd21bca692 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 30 May 2024 18:34:25 +0300 Subject: [PATCH] redis-key --- 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 0aa75d3..c22335a 100644 --- a/server/memorystore/providers/redis/store.go +++ b/server/memorystore/providers/redis/store.go @@ -231,7 +231,7 @@ type AuthorProfile struct { // and assigns the JSON string to the provided user's ID. func (c *provider) GetUserAppDataFromRedis(userId string) (string, error) { // Получаем ID автора из Redis - authorIdString, err := c.store.Get(c.ctx, fmt.Sprintf("user:id:%s", userId)).Result() + authorIdString, err := c.store.Get(c.ctx, fmt.Sprintf("author:user:%s", userId)).Result() if err != nil { return "", err }