mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
fix null refs on free org create
This commit is contained in:
@ -527,11 +527,11 @@ namespace Bit.Core.Services
|
||||
UseTotp = plan.UseTotp,
|
||||
SelfHost = plan.SelfHost,
|
||||
Plan = plan.Name,
|
||||
Gateway = GatewayType.Stripe,
|
||||
Gateway = plan.Type == PlanType.Free ? null : (GatewayType?)GatewayType.Stripe,
|
||||
GatewayCustomerId = customer?.Id,
|
||||
GatewaySubscriptionId = subscription?.Id,
|
||||
Enabled = true,
|
||||
ExpirationDate = subscription.CurrentPeriodEnd,
|
||||
ExpirationDate = subscription?.CurrentPeriodEnd,
|
||||
LicenseKey = CoreHelpers.SecureRandomString(20),
|
||||
CreationDate = DateTime.UtcNow,
|
||||
RevisionDate = DateTime.UtcNow
|
||||
|
Reference in New Issue
Block a user