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