@develit-services/bank 0.0.37 → 0.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -671,10 +671,8 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
671
671
  };
672
672
  }
673
673
  );
674
- const { supportedPayments, unsupportedPayments } = seperateSupportedPayments(
675
- mappedPayments,
676
- this.bankConnector.connectedAccounts
677
- );
674
+ const accounts = await this.getAccounts();
675
+ const { supportedPayments, unsupportedPayments } = seperateSupportedPayments(mappedPayments, accounts);
678
676
  if (unsupportedPayments.length > 0) {
679
677
  this.logError({ unsupportedPayments });
680
678
  await this.pushToQueue(
@@ -700,7 +698,7 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
700
698
  }))
701
699
  );
702
700
  }
703
- for (const acc of this.bankConnector.connectedAccounts) {
701
+ for (const acc of await this.getAccounts()) {
704
702
  const newPayments = supportedPayments.filter(
705
703
  (payment) => payment.debtorIban === acc.iban && payment.currency === acc.currency
706
704
  ).map((payment) => ({
@@ -667,10 +667,8 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
667
667
  };
668
668
  }
669
669
  );
670
- const { supportedPayments, unsupportedPayments } = seperateSupportedPayments(
671
- mappedPayments,
672
- this.bankConnector.connectedAccounts
673
- );
670
+ const accounts = await this.getAccounts();
671
+ const { supportedPayments, unsupportedPayments } = seperateSupportedPayments(mappedPayments, accounts);
674
672
  if (unsupportedPayments.length > 0) {
675
673
  this.logError({ unsupportedPayments });
676
674
  await this.pushToQueue(
@@ -696,7 +694,7 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
696
694
  }))
697
695
  );
698
696
  }
699
- for (const acc of this.bankConnector.connectedAccounts) {
697
+ for (const acc of await this.getAccounts()) {
700
698
  const newPayments = supportedPayments.filter(
701
699
  (payment) => payment.debtorIban === acc.iban && payment.currency === acc.currency
702
700
  ).map((payment) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/bank",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {