@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.
- package/dist/export/worker.cjs +3 -5
- package/dist/export/worker.mjs +3 -5
- package/package.json +1 -1
package/dist/export/worker.cjs
CHANGED
|
@@ -671,10 +671,8 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
671
671
|
};
|
|
672
672
|
}
|
|
673
673
|
);
|
|
674
|
-
const
|
|
675
|
-
|
|
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.
|
|
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) => ({
|
package/dist/export/worker.mjs
CHANGED
|
@@ -667,10 +667,8 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
|
|
|
667
667
|
};
|
|
668
668
|
}
|
|
669
669
|
);
|
|
670
|
-
const
|
|
671
|
-
|
|
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.
|
|
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) => ({
|