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