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