mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Clean UpdateDisplayPreferences endpoint
This commit is contained in:
parent
0017163f39
commit
1c471d5855
@ -74,14 +74,9 @@ namespace Jellyfin.Api.Controllers
|
|||||||
[FromQuery, BindRequired] string client,
|
[FromQuery, BindRequired] string client,
|
||||||
[FromBody, BindRequired] DisplayPreferences displayPreferences)
|
[FromBody, BindRequired] DisplayPreferences displayPreferences)
|
||||||
{
|
{
|
||||||
if (!ModelState.IsValid)
|
|
||||||
{
|
|
||||||
return BadRequest(ModelState);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (displayPreferencesId == null)
|
if (displayPreferencesId == null)
|
||||||
{
|
{
|
||||||
// do nothing.
|
// TODO - refactor so parameter doesn't exist or is actually used.
|
||||||
}
|
}
|
||||||
|
|
||||||
_displayPreferencesRepository.SaveDisplayPreferences(
|
_displayPreferencesRepository.SaveDisplayPreferences(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user