Fixed: Enforce validation warnings when testing providers

(cherry picked from commit c3b4126d0c4f449a41e2cf7ea438b20e25370995)
pull/3078/head
Bogdan 1 year ago
parent ae92b22727
commit 5196ce311b

@ -74,7 +74,7 @@ namespace Readarr.Api.V1
if (providerDefinition.Enable) if (providerDefinition.Enable)
{ {
Test(providerDefinition, false); Test(providerDefinition, !forceSave);
} }
providerDefinition = _providerFactory.Create(providerDefinition); providerDefinition = _providerFactory.Create(providerDefinition);
@ -92,7 +92,7 @@ namespace Readarr.Api.V1
// Only test existing definitions if it is enabled and forceSave isn't set. // Only test existing definitions if it is enabled and forceSave isn't set.
if (providerDefinition.Enable && !forceSave) if (providerDefinition.Enable && !forceSave)
{ {
Test(providerDefinition, false); Test(providerDefinition, true);
} }
_providerFactory.Update(providerDefinition); _providerFactory.Update(providerDefinition);

Loading…
Cancel
Save