The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix billing command - add workflow subscription item (#11631)
Etiennea7b75c61e877
diff --git a/packages/twenty-server/src/engine/core-modules/billing/commands/billing-add-workflow-subscription-item.command.ts b/packages/twenty-server/src/engine/core-modules/billing/commands/billing-add-workflow-subscription-item.command.tsindex bb2cb01a95d..d1ba961122a 100644--- a/packages/twenty-server/src/engine/core-modules/billing/commands/billing-add-workflow-subscription-item.command.ts+++ b/packages/twenty-server/src/engine/core-modules/billing/commands/billing-add-workflow-subscription-item.command.ts@@ -81,6 +81,17 @@ export class BillingAddWorkflowSubscriptionItemCommand extends ActiveOrSuspended}if (!options.dryRun) {+ await this.stripeSubscriptionService.updateSubscription(+ subscription.stripeSubscriptionId,+ {+ trial_settings: {+ end_behavior: {+ missing_payment_method: 'create_invoice',+ },+ },+ },+ );+await this.stripeSubscriptionItemService.createSubscriptionItem(subscription.stripeSubscriptionId,associatedWorkflowMeteredPrice.stripePriceId,