Fixed: Priority validation for indexers and download clients

(cherry picked from commit f0e320f3aa501f120721503b8256f464a31be783)
This commit is contained in:
Bogdan
2025-03-20 13:10:06 +02:00
parent bab45481db
commit 080dd301f3
2 changed files with 4 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
using FluentValidation;
using NzbDrone.Core.Download;
using Readarr.Http;
@@ -12,6 +13,7 @@ namespace Readarr.Api.V1.DownloadClient
public DownloadClientController(IDownloadClientFactory downloadClientFactory)
: base(downloadClientFactory, "downloadclient", ResourceMapper, BulkResourceMapper)
{
SharedValidator.RuleFor(c => c.Priority).InclusiveBetween(1, 50);
}
}
}