Selaa lähdekoodia

Clean UpdateDisplayPreferences endpoint

crobibero 5 vuotta sitten
vanhempi
sitoutus
1c471d5855
1 muutettua tiedostoa jossa 1 lisäystä ja 6 poistoa
  1. 1 6
      Jellyfin.Api/Controllers/DisplayPreferencesController.cs

+ 1 - 6
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(