fixed-redis-cache-2
Some checks failed
deploy / deploy (push) Failing after 1m3s

This commit is contained in:
Untone 2024-06-05 21:27:51 +03:00
parent 76f976937a
commit b8f5e9ebb9

View File

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