Explorar o código

Clean UpdateDisplayPreferences endpoint

crobibero %!s(int64=5) %!d(string=hai) anos
pai
achega
1c471d5855
Modificáronse 1 ficheiros con 1 adicións e 6 borrados
  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(