This commit is contained in:
parent
085faf73e7
commit
641c5bc248
|
@ -232,8 +232,11 @@ type AuthorProfile struct {
|
|||
// and assigns the JSON string to the provided user's ID.
|
||||
func (c *provider) GetUserAppDataFromRedis(userId string) (string, error) {
|
||||
// Получаем профиль автора из Redis
|
||||
authorProfileString, err := c.store.Get(c.ctx, fmt.Sprintf("author:user:%s", userId)).Result()
|
||||
rkey := fmt.Sprintf("author:user:%s", userId)
|
||||
authorProfileString, err := c.store.Get(c.ctx, rkey).Result()
|
||||
if err != nil {
|
||||
fmt.Println("redis GET: %s", rkey)
|
||||
fmt.Println("%s", authorProfileString)
|
||||
return "", err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user