refactor(dir): ♻ validate licenseId > 0 on list create

This commit is contained in:
Collin M. Barrett 2021-11-26 14:34:49 -06:00
parent 43c2036a7e
commit 9d8af88ebc

View file

@ -31,7 +31,7 @@ internal class Validator : AbstractValidator<Command>
public Validator()
{
RuleFor(c => c.LicenseId)
.GreaterThanOrEqualTo(0)
.GreaterThan(0)
.When(c => c.LicenseId != null);
}
}