You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
621 B
24 lines
621 B
using NLog;
|
|
using NzbDrone.Core.History;
|
|
|
|
namespace NzbDrone.Core.Housekeeping.Housekeepers
|
|
{
|
|
public class CleanupOrphanedHistoryItems : IHousekeepingTask
|
|
{
|
|
private readonly IHistoryService _historyService;
|
|
private readonly Logger _logger;
|
|
|
|
public CleanupOrphanedHistoryItems(IHistoryService historyService, Logger logger)
|
|
{
|
|
_historyService = historyService;
|
|
_logger = logger;
|
|
}
|
|
|
|
public void Clean()
|
|
{
|
|
_logger.Trace("Running orphaned history cleanup");
|
|
_historyService.CleanupOrphaned();
|
|
}
|
|
}
|
|
}
|