1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-12 11:15:43 +02:00

Fixed: Enforce validation warnings when testing providers

This commit is contained in:
Bogdan 2023-11-12 18:01:39 +02:00 committed by Mark McDowall
parent f205cfabab
commit c3b4126d0c

View File

@ -74,7 +74,7 @@ public ActionResult<TProviderResource> CreateProvider([FromBody] TProviderResour
if (providerDefinition.Enable)
{
Test(providerDefinition, false);
Test(providerDefinition, !forceSave);
}
providerDefinition = _providerFactory.Create(providerDefinition);
@ -92,7 +92,7 @@ public ActionResult<TProviderResource> UpdateProvider([FromBody] TProviderResour
// Only test existing definitions if it is enabled and forceSave isn't set.
if (providerDefinition.Enable && !forceSave)
{
Test(providerDefinition, false);
Test(providerDefinition, true);
}
_providerFactory.Update(providerDefinition);