Skip to content

Commit

Permalink
changes for update to current plan
Browse files Browse the repository at this point in the history
  • Loading branch information
cyprain-okeke committed Jan 22, 2025
1 parent cb76cdb commit 11e2101
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Api/Billing/Controllers/OrganizationBillingController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ public async Task<IResult> RestartSubscriptionAsync([FromRoute] Guid organizatio
}
var organizationSignup = model.ToOrganizationSignup(user);
var sale = OrganizationSale.From(organization, organizationSignup);
var plan = StaticStore.GetPlan(model.PlanType);
sale.Organization.PlanType = plan.Type;
sale.Organization.Plan = plan.Name;
await organizationBillingService.Finalize(sale);

return TypedResults.Ok();
Expand Down

0 comments on commit 11e2101

Please sign in to comment.