The Free Software Media System - Server Backend & API
Fix compile errors
Matt Montgomeryc49a357f85ed
diff --git a/Jellyfin.Api/Controllers/QuickConnectController.cs b/Jellyfin.Api/Controllers/QuickConnectController.csindex fd54535953..1625bcffe7 100644--- a/Jellyfin.Api/Controllers/QuickConnectController.cs+++ b/Jellyfin.Api/Controllers/QuickConnectController.cs@@ -1,5 +1,6 @@using System.ComponentModel.DataAnnotations;using Jellyfin.Api.Constants;+using Jellyfin.Api.Helpers;using MediaBrowser.Common.Extensions;using MediaBrowser.Controller.Library;using MediaBrowser.Controller.Net;@@ -148,8 +149,13 @@ namespace Jellyfin.Api.Controllers[ProducesResponseType(StatusCodes.Status200OK)]public ActionResult<int> Deauthorize(){- var userId = ClaimHelpers.GetUserId(request.HttpContext.User);- return _quickConnect.DeleteAllDevices(userId);+ var userId = ClaimHelpers.GetUserId(Request.HttpContext.User);+ if (!userId.HasValue)+ {+ return 0;+ }++ return _quickConnect.DeleteAllDevices(userId.Value);}}}diff --git a/Jellyfin.Api/Models/UserDtos/QuickConnectDto.cs b/Jellyfin.Api/Models/UserDtos/QuickConnectDto.csindex ac09497328..c3a2d5cec2 100644--- a/Jellyfin.Api/Models/UserDtos/QuickConnectDto.cs+++ b/Jellyfin.Api/Models/UserDtos/QuickConnectDto.cs@@ -1,4 +1,6 @@-namespace Jellyfin.Api.Models.UserDtos+using System.ComponentModel.DataAnnotations;++namespace Jellyfin.Api.Models.UserDtos{/// <summary>/// The quick connect request body.