Clean UpdateDisplayPreferences endpoint

This commit is contained in:
crobibero 2020-05-19 09:01:00 -06:00
parent 0017163f39
commit 1c471d5855
1 changed files with 1 additions and 6 deletions

View File

@ -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(