mirror of
https://github.com/elyby/chrly.git
synced 2024-11-30 02:32:19 +05:30
Исправлена ошибка, которая возвращается, если в бд не найдено записи о скине
This commit is contained in:
parent
80fa307915
commit
378643623b
@ -133,7 +133,7 @@ func (db *redisDb) FindByUsername(username string) (*model.Skin, error) {
|
||||
func (db *redisDb) FindByUserId(id int) (*model.Skin, error) {
|
||||
response := db.conn.Cmd("HGET", accountIdToUsernameKey, id)
|
||||
if response.IsType(redis.Nil) {
|
||||
return nil, SkinNotFoundError{"unknown"}
|
||||
return nil, &SkinNotFoundError{"unknown"}
|
||||
}
|
||||
|
||||
username, _ := response.Str()
|
||||
|
Loading…
Reference in New Issue
Block a user