mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Sync on a mass Indexer edit
This commit is contained in:
@@ -16,6 +16,7 @@ namespace NzbDrone.Core.Applications
|
||||
IHandleAsync<ProviderDeletedEvent<IIndexer>>,
|
||||
IHandleAsync<ProviderAddedEvent<IApplication>>,
|
||||
IHandleAsync<ProviderUpdatedEvent<IIndexer>>,
|
||||
IHandleAsync<ProviderBulkUpdatedEvent<IIndexer>>,
|
||||
IHandleAsync<ApiKeyChangedEvent>,
|
||||
IExecute<ApplicationIndexerSyncCommand>
|
||||
{
|
||||
@@ -86,6 +87,15 @@ namespace NzbDrone.Core.Applications
|
||||
SyncIndexers(enabledApps, indexers);
|
||||
}
|
||||
|
||||
public void HandleAsync(ProviderBulkUpdatedEvent<IIndexer> message)
|
||||
{
|
||||
var enabledApps = _applicationsFactory.SyncEnabled();
|
||||
|
||||
var indexers = message.Definitions.Select(d => (IndexerDefinition)d).ToList();
|
||||
|
||||
SyncIndexers(enabledApps, indexers);
|
||||
}
|
||||
|
||||
public void Execute(ApplicationIndexerSyncCommand message)
|
||||
{
|
||||
var enabledApps = _applicationsFactory.SyncEnabled();
|
||||
|
Reference in New Issue
Block a user