mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Cleaned up some validation
This commit is contained in:
parent
a40ad82fa7
commit
5343bde070
3 changed files with 1 additions and 3 deletions
|
@ -40,7 +40,7 @@ namespace NzbDrone.Api.Indexers
|
|||
GetResourceAll = GetReleases;
|
||||
Post["/"] = x=> DownloadRelease(this.Bind<ReleaseResource>());
|
||||
|
||||
PostValidator.RuleFor(s => s.DownloadAllowed);
|
||||
PostValidator.RuleFor(s => s.DownloadAllowed).Equal(true);
|
||||
}
|
||||
|
||||
private Response DownloadRelease(ReleaseResource release)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue