mirror of
https://github.com/Lidarr/Lidarr
synced 2026-01-06 07:33:16 +01:00
Fixed: Provider health checks persist after add until next scheduled check
(cherry picked from commit 202449c40c82c6dfd2d15844c578436bbe3c8872) Closes #3661
This commit is contained in:
parent
f621d3c3e7
commit
6ae9741266
1 changed files with 4 additions and 3 deletions
|
|
@ -108,9 +108,10 @@ public TProviderDefinition Find(int id)
|
|||
|
||||
public virtual TProviderDefinition Create(TProviderDefinition definition)
|
||||
{
|
||||
var addedDefinition = _providerRepository.Insert(definition);
|
||||
_eventAggregator.PublishEvent(new ProviderAddedEvent<TProvider>(definition));
|
||||
return addedDefinition;
|
||||
var result = _providerRepository.Insert(definition);
|
||||
_eventAggregator.PublishEvent(new ProviderAddedEvent<TProvider>(result));
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public virtual void Update(TProviderDefinition definition)
|
||||
|
|
|
|||
Loading…
Reference in a new issue