Browse Source
fix(organization): null exception occurs when setting plan to free
pull/90/head
berkansasmaz
5 years ago
No known key found for this signature in database
GPG Key ID: 3AD81E2CA002230D
1 changed files with
5 additions and
1 deletions
-
src/EventHub.Domain/Organizations/Organization.cs
|
|
@ -98,8 +98,12 @@ namespace EventHub.Organizations |
|
|
{ |
|
|
{ |
|
|
throw new AbpValidationException(); |
|
|
throw new AbpValidationException(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (planType != OrganizationPlanType.Free) |
|
|
|
|
|
{ |
|
|
|
|
|
Check.NotNull(endDate, nameof(endDate)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
Check.NotNull(endDate, nameof(endDate)); |
|
|
|
|
|
PlanType = planType; |
|
|
PlanType = planType; |
|
|
PaidEnrollmentEndDate = endDate; |
|
|
PaidEnrollmentEndDate = endDate; |
|
|
|
|
|
|
|
|
|