This commit is contained in:
parent
e9f54a74f0
commit
55121656a8
|
@ -237,11 +237,12 @@ func (c *provider) GetUserAppDataFromRedis(userId string) (string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Преобразуем ID автора из строки в int
|
// Преобразуем ID автора из строки в int
|
||||||
var authorId int
|
var authorIdFloat float64
|
||||||
err = json.Unmarshal([]byte(authorIdString), &authorId)
|
err = json.Unmarshal([]byte(authorIdString), &authorIdFloat)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
authorId := int(authorIdFloat)
|
||||||
|
|
||||||
// Получаем профиль автора из Redis
|
// Получаем профиль автора из Redis
|
||||||
authorProfileString, err := c.store.Get(c.ctx, fmt.Sprintf("author:id:%d", authorId)).Result()
|
authorProfileString, err := c.store.Get(c.ctx, fmt.Sprintf("author:id:%d", authorId)).Result()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user