This commit is contained in:
parent
76f976937a
commit
b8f5e9ebb9
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user