mirror of
https://github.com/Sonarr/Sonarr
synced 2026-05-08 13:01:10 +02:00
Remove deprecated fallback to body ID from API v5
This commit is contained in:
parent
bf5d48c76a
commit
f54b9fe4a1
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