1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

Fixed: Re-testing edited providers will forcibly test them

This commit is contained in:
Bogdan
2024-04-15 05:43:52 +03:00
committed by Mark McDowall
parent 016c4b353b
commit e966254462
2 changed files with 24 additions and 4 deletions
+2 -2
View File
@@ -205,10 +205,10 @@ namespace Sonarr.Api.V3
[SkipValidation(true, false)]
[HttpPost("test")]
[Consumes("application/json")]
public object Test([FromBody] TProviderResource providerResource)
public object Test([FromBody] TProviderResource providerResource, [FromQuery] bool forceTest = false)
{
var existingDefinition = providerResource.Id > 0 ? _providerFactory.Find(providerResource.Id) : null;
var providerDefinition = GetDefinition(providerResource, existingDefinition, true, true, true);
var providerDefinition = GetDefinition(providerResource, existingDefinition, true, !forceTest, true);
Test(providerDefinition, true);