diff --git a/server/memorystore/providers/redis/store.go b/server/memorystore/providers/redis/store.go index a2b7c0e..87a32df 100644 --- a/server/memorystore/providers/redis/store.go +++ b/server/memorystore/providers/redis/store.go @@ -247,7 +247,8 @@ func (c *provider) GetUserAppDataFromRedis(userId string) (string, error) { return "", err } - authorId, ok := authorProfileMap["id"].(int) + authorId, ok := authorProfileMap["id"].(float64) + authorId = int(authorId) if !ok { fmt.Println("Ошибка: id не найден или неверного типа") return "", errors.New("id not found or is of incorrect type")