mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
New: Clear all history from History page
This commit is contained in:
@@ -31,7 +31,8 @@ namespace NzbDrone.Core.History
|
||||
IHandle<IndexerQueryEvent>,
|
||||
IHandle<IndexerDownloadEvent>,
|
||||
IHandle<IndexerAuthEvent>,
|
||||
IExecute<CleanUpHistoryCommand>
|
||||
IExecute<CleanUpHistoryCommand>,
|
||||
IExecute<ClearHistoryCommand>
|
||||
{
|
||||
private readonly IHistoryRepository _historyRepository;
|
||||
private readonly IConfigService _configService;
|
||||
@@ -197,5 +198,10 @@ namespace NzbDrone.Core.History
|
||||
{
|
||||
Cleanup();
|
||||
}
|
||||
|
||||
public void Execute(ClearHistoryCommand message)
|
||||
{
|
||||
_historyRepository.Purge(vacuum: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user