fixed-redis-intfix
Some checks failed
deploy / deploy (push) Failing after 1m4s

This commit is contained in:
Untone 2024-06-05 22:07:06 +03:00
parent 641c5bc248
commit 5745a9b3c4

View File

@ -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")