mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Housekeepers talk to the DB directly now
This commit is contained in:
parent
6c91639d64
commit
f716a6d9fd
11 changed files with 161 additions and 141 deletions
|
@ -17,7 +17,6 @@ namespace NzbDrone.Core.History
|
|||
void Trim();
|
||||
QualityModel GetBestQualityInHistory(int episodeId);
|
||||
PagingSpec<History> Paged(PagingSpec<History> pagingSpec);
|
||||
void CleanupOrphaned();
|
||||
}
|
||||
|
||||
public class HistoryService : IHistoryService, IHandle<EpisodeGrabbedEvent>, IHandle<EpisodeImportedEvent>
|
||||
|
@ -41,12 +40,6 @@ namespace NzbDrone.Core.History
|
|||
return _historyRepository.GetPaged(pagingSpec);
|
||||
}
|
||||
|
||||
public void CleanupOrphaned()
|
||||
{
|
||||
_historyRepository.CleanupOrphanedBySeries();
|
||||
_historyRepository.CleanupOrphanedByEpisode();
|
||||
}
|
||||
|
||||
public void Purge()
|
||||
{
|
||||
_historyRepository.Purge();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue