fixed-redis-intfix2
All checks were successful
deploy / deploy (push) Successful in 1m27s

This commit is contained in:
Untone 2024-06-05 22:10:43 +03:00
parent 5745a9b3c4
commit 7d5d31692f

View File

@ -247,12 +247,11 @@ func (c *provider) GetUserAppDataFromRedis(userId string) (string, error) {
return "", err
}
authorId, ok := authorProfileMap["id"].(float64)
authorId = int(authorId)
authorIdFloat, ok := authorProfileMap["id"].(float64)
if !ok {
fmt.Println("Ошибка: id не найден или неверного типа")
return "", errors.New("id not found or is of incorrect type")
}
authorId := int(authorIdFloat)
// Начинаем сбор данных в общий JSON
combinedData := map[string]interface{}{