mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
GetDeviceOptions always returns an instance of DeviceOptions
This commit is contained in:
@@ -107,12 +107,6 @@ namespace Jellyfin.Api.Controllers
|
||||
[FromQuery, Required] string id,
|
||||
[FromBody, Required] DeviceOptions deviceOptions)
|
||||
{
|
||||
var existingDeviceOptions = await _deviceManager.GetDeviceOptions(id).ConfigureAwait(false);
|
||||
if (existingDeviceOptions == null)
|
||||
{
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
await _deviceManager.UpdateDeviceOptions(id, deviceOptions).ConfigureAwait(false);
|
||||
return NoContent();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user