mirror of
https://github.com/Sonarr/Sonarr
synced 2026-02-10 00:33:34 +01:00
Fixed force saving provider triggering testing
This commit is contained in:
parent
d211887050
commit
65cb1ccafd
1 changed files with 2 additions and 2 deletions
|
|
@ -95,8 +95,8 @@ public ActionResult<TProviderResource> UpdateProvider([FromBody] TProviderResour
|
|||
var hasDefinitionChanged = STJson.ToJson(existingDefinition) != STJson.ToJson(providerDefinition) ||
|
||||
STJson.ToJson(existingDefinition.Settings) != STJson.ToJson(providerDefinition.Settings);
|
||||
|
||||
// Only test existing definitions if it is enabled and forceSave isn't set or the definition has changed.
|
||||
if (providerDefinition.Enable && (!forceSave || hasDefinitionChanged))
|
||||
// Only test existing definitions if it is enabled and forceSave isn't set and the definition has changed.
|
||||
if (providerDefinition.Enable && !forceSave && hasDefinitionChanged)
|
||||
{
|
||||
Test(providerDefinition, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue