1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-07 00:21:32 +01:00

changes for update to current plan (#5312)

This commit is contained in:
cyprain-okeke 2025-01-22 19:27:11 +01:00 committed by GitHub
parent 8f8a599c07
commit 9e7d1abdf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -310,6 +310,9 @@ public class OrganizationBillingController(
}
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();