New: Sync Lists on Add and Update (#342)

This commit is contained in:
Qstick
2018-05-10 19:06:02 -04:00
committed by GitHub
parent ad6e651090
commit 5a8e79eec2
7 changed files with 139 additions and 6 deletions
@@ -98,7 +98,9 @@ namespace NzbDrone.Core.ThingiProvider
public virtual TProviderDefinition Create(TProviderDefinition definition)
{
return _providerRepository.Insert(definition);
var addedDefinition = _providerRepository.Insert(definition);
_eventAggregator.PublishEvent(new ProviderAddedEvent<TProvider>(definition));
return addedDefinition;
}
public virtual void Update(TProviderDefinition definition)