mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(dir): ♻ validate licenseId > 0 on list create
This commit is contained in:
parent
43c2036a7e
commit
9d8af88ebc
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ internal class Validator : AbstractValidator<Command>
|
|||
public Validator()
|
||||
{
|
||||
RuleFor(c => c.LicenseId)
|
||||
.GreaterThanOrEqualTo(0)
|
||||
.GreaterThan(0)
|
||||
.When(c => c.LicenseId != null);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue