Fixed force saving provider triggering testing

(cherry picked from commit 65cb1ccafd54479fa3fca1f1eaa4b96222b0176b)
pull/4332/head
Mark McDowall 6 months ago committed by Bogdan
parent 1be09d0fe9
commit a2acbddd65

@ -95,8 +95,8 @@ namespace Lidarr.Api.V1
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…
Cancel
Save