redis-key

This commit is contained in:
Untone 2024-05-30 18:34:25 +03:00
parent 12af7fc617
commit 693f252ae9

View File

@ -231,7 +231,7 @@ type AuthorProfile struct {
// and assigns the JSON string to the provided user's ID. // and assigns the JSON string to the provided user's ID.
func (c *provider) GetUserAppDataFromRedis(userId string) (string, error) { func (c *provider) GetUserAppDataFromRedis(userId string) (string, error) {
// Получаем ID автора из Redis // Получаем ID автора из Redis
authorIdString, err := c.store.Get(c.ctx, fmt.Sprintf("user:id:%s", userId)).Result() authorIdString, err := c.store.Get(c.ctx, fmt.Sprintf("author:user:%s", userId)).Result()
if err != nil { if err != nil {
return "", err return "", err
} }