mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-10 23:33:38 -07:00
Fixed root folder integration test
This commit is contained in:
parent
77b83b521e
commit
207ffd1e5a
2 changed files with 6 additions and 2 deletions
|
@ -9,8 +9,10 @@ namespace NzbDrone.Api.Config
|
|||
{
|
||||
public DownloadClientConfigModule(IConfigService configService, RootFolderValidator rootFolderValidator, PathExistsValidator pathExistsValidator)
|
||||
: base(configService)
|
||||
{
|
||||
{
|
||||
SharedValidator.RuleFor(c => c.DownloadedEpisodesFolder)
|
||||
.Cascade(CascadeMode.StopOnFirstFailure)
|
||||
.IsValidPath()
|
||||
.SetValidator(rootFolderValidator)
|
||||
.SetValidator(pathExistsValidator)
|
||||
.When(c => !String.IsNullOrWhiteSpace(c.DownloadedEpisodesFolder));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue