mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 22:07:32 -04:00
Fixed: Provider health checks persist after add until next scheduled check
(cherry picked from commit 202449c40c82c6dfd2d15844c578436bbe3c8872)
This commit is contained in:
parent
3d61719a2c
commit
ceab19caf9
1 changed files with 4 additions and 3 deletions
|
@ -98,9 +98,10 @@ namespace NzbDrone.Core.ThingiProvider
|
||||||
|
|
||||||
public virtual TProviderDefinition Create(TProviderDefinition definition)
|
public virtual TProviderDefinition Create(TProviderDefinition definition)
|
||||||
{
|
{
|
||||||
var addedDefinition = _providerRepository.Insert(definition);
|
var result = _providerRepository.Insert(definition);
|
||||||
_eventAggregator.PublishEvent(new ProviderAddedEvent<TProvider>(definition));
|
_eventAggregator.PublishEvent(new ProviderAddedEvent<TProvider>(result));
|
||||||
return addedDefinition;
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void Update(TProviderDefinition definition)
|
public virtual void Update(TProviderDefinition definition)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue