mirror of
https://github.com/Sonarr/Sonarr
synced 2026-05-09 05:40:53 +02:00
Merge f54b9fe4a1 into bf5d48c76a
This commit is contained in:
commit
78d0fae188
1 changed files with 1 additions and 2 deletions
|
|
@ -97,8 +97,7 @@ public Results<Created<TProviderResource>, NotFound> CreateProvider([FromBody] T
|
|||
[Produces("application/json")]
|
||||
public Results<Accepted<TProviderResource>, NotFound> UpdateProvider([FromRoute] int id, [FromBody] TProviderResource providerResource, [FromQuery] bool skipTesting = false, [FromQuery] SkipValidation skipValidation = SkipValidation.None)
|
||||
{
|
||||
// TODO: Remove fallback to Id from body in next API version bump
|
||||
var existingDefinition = _providerFactory.Find(id) ?? _providerFactory.Find(providerResource.Id);
|
||||
var existingDefinition = _providerFactory.Find(id);
|
||||
|
||||
if (existingDefinition == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue