taskConfig per tenant - for troubleshooting only
MODIFY
src/scheduler/tasks/SynchronizeBillingInvoicesTask.ts
src/scheduler/tasks/SynchronizeBillingInvoicesTask.ts
@@ -30,7 +30,7 @@ export default class SynchronizeBillingInvoicesTask extends SchedulerTask {
);
}
// Attempt payment - once a month! - A second task with a dedicated configuration to trigger the payment attempts
- if (taskConfig?.attemptPayment) {
+ if (taskConfig && taskConfig[tenant.subdomain]?.attemptPayment) { // TODO - For troubleshooting with dedicated tenants - to be removed
// Attempt to pay invoices with status OPEN
const chargeActionResults = await billingImpl.chargeInvoices();
if (chargeActionResults.inError > 0) {

taskConfig per tenant - for troubleshooting only