commented creating acc in db when account connect only after accept from webhook
This commit is contained in:
parent
37cd008dab
commit
02ca38860e
@ -55,11 +55,11 @@ func (s *Service) GetCurrentAccount(ctx context.Context, accountID string) (*mod
|
||||
}
|
||||
|
||||
func (s *Service) ConnectAccount(ctx context.Context, accountID string) (*model.ConnectAccountResp, error) {
|
||||
err := s.repository.AmoRepo.CreateAccount(ctx, accountID)
|
||||
if err != nil {
|
||||
s.logger.Error("error create account in connectAccount service", zap.Error(err))
|
||||
return nil, err
|
||||
}
|
||||
//err := s.repository.AmoRepo.CreateAccount(ctx, accountID)
|
||||
//if err != nil {
|
||||
// s.logger.Error("error create account in connectAccount service", zap.Error(err))
|
||||
// return nil, err
|
||||
//}
|
||||
|
||||
shifr, err := s.encrypt.EncryptStr(accountID)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user