commented creating acc in db when account connect only after accept from webhook

This commit is contained in:
Pavel 2024-04-17 19:34:31 +03:00
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 {