Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/7c243cb6e8ec9df123f6ecd4f5707668287b69a9?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
10 additions and
3 deletions
@ -86,9 +86,16 @@ namespace Radarr.Api.V3
[RestPutById]
[Consumes("application/json")]
[Produces("application/json")]
public ActionResult < TProviderResource > UpdateProvider ( [ From Body] TProviderResource providerResource , [ FromQuery ] bool forceSave = false )
public ActionResult < TProviderResource > UpdateProvider ( [ From Route] int id , [ From Body] TProviderResource providerResource , [ FromQuery ] bool forceSave = false )
{
var existingDefinition = _providerFactory . Find ( providerResource . Id ) ;
// TODO: Remove fallback to Id from body in next API version bump
var existingDefinition = _providerFactory . Find ( id ) ? ? _providerFactory . Find ( providerResource . Id ) ;
if ( existingDefinition = = null )
{
return NotFound ( ) ;
}
var providerDefinition = GetDefinition ( providerResource , existingDefinition , true , ! forceSave , false ) ;
// Compare settings separately because they are not serialized with the definition.
@ -105,7 +112,7 @@ namespace Radarr.Api.V3
_providerFactory . Update ( providerDefinition ) ;
}
return Accepted ( providerResource . Id ) ;
return Accepted ( existingDefinition . Id ) ;
}
[HttpPut("bulk")]