Fixed: Allow Min/Max age to be the same for year auto tagging

This commit is contained in:
Mark McDowall 2023-08-20 10:38:00 -07:00
parent 7be22af865
commit fc6ac3ddf1
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ namespace NzbDrone.Core.AutoTagging.Specifications
RuleFor(c => c.Min).NotEmpty(); RuleFor(c => c.Min).NotEmpty();
RuleFor(c => c.Min).GreaterThan(0); RuleFor(c => c.Min).GreaterThan(0);
RuleFor(c => c.Max).NotEmpty(); RuleFor(c => c.Max).NotEmpty();
RuleFor(c => c.Max).GreaterThan(c => c.Min); RuleFor(c => c.Max).GreaterThanOrEqualTo(c => c.Min);
} }
} }