|
|
@@ -271,7 +271,7 @@ func (s *BusinessExtServer) GetUser(ctx context.Context, req *pb.GetUserReq) (*p |
|
|
|
} |
|
|
|
|
|
|
|
var businessUser business.User |
|
|
|
err := db.BusinessDB.First(&businessUser, "phone_number = ?", user.PhoneNumber).Error |
|
|
|
err := db.BusinessDB.First(&businessUser, "phone = ?", user.PhoneNumber).Error |
|
|
|
if err != nil && err != gorm.ErrRecordNotFound { |
|
|
|
return nil, gerrors.WrapError(err) |
|
|
|
} |
|
|
|