fixed RootFolderChecks

This commit is contained in:
Robin Dadswell
2021-01-17 22:15:57 +00:00
committed by nitsua
parent 604c354284
commit b3bdaeeffa

View File

@@ -29,8 +29,8 @@ public RootFolderCheck(IAuthorService authorService, IImportListFactory importLi
public override HealthCheck Check()
{
var rootFolders = _authorService.GetAllAuthors()
.Select(s => _rootFolderService.GetBestRootFolderPath(s.Path))
var rootFolders = _authorService.AllAuthorPaths()
.Select(s => _rootFolderService.GetBestRootFolderPath(s.Value))
.Distinct();
var missingRootFolders = rootFolders.Where(s => !_diskProvider.FolderExists(s))