1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-16 07:50:49 -05:00

Revert the changes on the organizationsale

This commit is contained in:
Cy Okeke 2025-06-10 15:51:42 +01:00
parent 3d8fa0166c
commit cef2550910
No known key found for this signature in database
GPG Key ID: 88B341B55C84B45C

View File

@ -45,18 +45,11 @@ public class OrganizationSale
public static OrganizationSale From(
Organization organization,
OrganizationUpgrade upgrade)
{
var customerSetup = string.IsNullOrEmpty(organization.GatewayCustomerId) ? GetCustomerSetup(upgrade) : null;
var subscriptionSetup = GetSubscriptionSetup(upgrade);
return new OrganizationSale
OrganizationUpgrade upgrade) => new()
{
Organization = organization,
CustomerSetup = customerSetup,
SubscriptionSetup = subscriptionSetup
SubscriptionSetup = GetSubscriptionSetup(upgrade)
};
}
private static CustomerSetup GetCustomerSetup(OrganizationSignup signup)
{