fix recover

This commit is contained in:
lwl0608 2024-09-10 12:58:01 +08:00
parent abf5a78356
commit 2c1c31d275
1 changed files with 3 additions and 1 deletions

View File

@ -149,7 +149,9 @@ func (p *Account) OpListByUserId(ctx *gin.Context, req *accountproto.OpListByUse
logger.Error("GetAccountListByUserId fail, err: %v", err)
return nil, err
}
_ = mediafiller.FillEntity(ctx, list.Avatar)
if list != nil {
_ = mediafiller.FillEntity(ctx, list.Avatar)
}
return list, nil
}