mirror of
https://github.com/elyby/chrly.git
synced 2025-01-03 18:51:49 +05:30
Merge branch 'develop'
This commit is contained in:
commit
63df092973
@ -133,7 +133,7 @@ func (db *redisDb) FindByUsername(username string) (*model.Skin, error) {
|
|||||||
func (db *redisDb) FindByUserId(id int) (*model.Skin, error) {
|
func (db *redisDb) FindByUserId(id int) (*model.Skin, error) {
|
||||||
response := db.conn.Cmd("HGET", accountIdToUsernameKey, id)
|
response := db.conn.Cmd("HGET", accountIdToUsernameKey, id)
|
||||||
if response.IsType(redis.Nil) {
|
if response.IsType(redis.Nil) {
|
||||||
return nil, SkinNotFoundError{"unknown"}
|
return nil, &SkinNotFoundError{"unknown"}
|
||||||
}
|
}
|
||||||
|
|
||||||
username, _ := response.Str()
|
username, _ := response.Str()
|
||||||
|
Loading…
Reference in New Issue
Block a user