diff --git a/server/memorystore/providers/redis/store.go b/server/memorystore/providers/redis/store.go index 87a32df..dcf384c 100644 --- a/server/memorystore/providers/redis/store.go +++ b/server/memorystore/providers/redis/store.go @@ -246,13 +246,12 @@ func (c *provider) GetUserAppDataFromRedis(userId string) (string, error) { if err != nil { return "", err } - - authorId, ok := authorProfileMap["id"].(float64) - authorId = int(authorId) - if !ok { - fmt.Println("Ошибка: id не найден или неверного типа") - return "", errors.New("id not found or is of incorrect type") - } + + authorIdFloat, ok := authorProfileMap["id"].(float64) + if !ok { + return "", errors.New("id not found or is of incorrect type") + } + authorId := int(authorIdFloat) // Начинаем сбор данных в общий JSON combinedData := map[string]interface{}{