Browse Source

fix(organization): null exception occurs when setting plan to free

pull/90/head
berkansasmaz 5 years ago
parent
commit
e3b65b2cf1
No known key found for this signature in database GPG Key ID: 3AD81E2CA002230D
  1. 6
      src/EventHub.Domain/Organizations/Organization.cs

6
src/EventHub.Domain/Organizations/Organization.cs

@ -98,8 +98,12 @@ namespace EventHub.Organizations
{
throw new AbpValidationException();
}
if (planType != OrganizationPlanType.Free)
{
Check.NotNull(endDate, nameof(endDate));
}
Check.NotNull(endDate, nameof(endDate));
PlanType = planType;
PaidEnrollmentEndDate = endDate;

Loading…
Cancel
Save