Update account.go
This commit is contained in:
parent
38eaf75363
commit
6149b83ce4
@ -614,7 +614,7 @@ func (a *AccountFieeProvider) Info(ctx context.Context, in *account.InfoRequest)
|
||||
var user *model.User
|
||||
if err := model.DB.Where(&model.User{Domain: &in.Domain}).Preload("RealName").First(&user, in.ID).Error; err != nil {
|
||||
logger.Error(err)
|
||||
return nil, err
|
||||
return nil, errors.New(m.Not_Found_Artist)
|
||||
}
|
||||
realName := user.RealName
|
||||
if realName == nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user