This commit is contained in:
@@ -247,7 +247,8 @@ func (c *provider) GetUserAppDataFromRedis(userId string) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
|
||||
authorId, ok := authorProfileMap["id"].(int)
|
||||
authorId, ok := authorProfileMap["id"].(float64)
|
||||
authorId = int(authorId)
|
||||
if !ok {
|
||||
fmt.Println("Ошибка: id не найден или неверного типа")
|
||||
return "", errors.New("id not found or is of incorrect type")
|
||||
|
Reference in New Issue
Block a user