diff options
| author | crobibero <cody@robibe.ro> | 2020-05-19 09:01:00 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-05-19 09:01:00 -0600 |
| commit | 1c471d58551043dab3c808952d9834163cac3078 (patch) | |
| tree | 7f1e8a2f9b7cc7aaaec588f442ae86ce68d57669 /Jellyfin.Api/Controllers/DisplayPreferencesController.cs | |
| parent | 0017163f39438e2718f7c95b3fb65df5dde65e3d (diff) | |
Clean UpdateDisplayPreferences endpoint
Diffstat (limited to 'Jellyfin.Api/Controllers/DisplayPreferencesController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/DisplayPreferencesController.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs index 2837ea8e8..579b5df5d 100644 --- a/Jellyfin.Api/Controllers/DisplayPreferencesController.cs +++ b/Jellyfin.Api/Controllers/DisplayPreferencesController.cs @@ -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( |
