aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LiveTvController.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2024-02-22 14:10:34 +0100
committerGitHub <noreply@github.com>2024-02-22 14:10:34 +0100
commitf5c55c832f46f0b03b0b48debccd34713e4ed21b (patch)
treee6e61f3ab0320c7c1ca6e9142f046671e67d4223 /Jellyfin.Api/Controllers/LiveTvController.cs
parentca21a80c95d7e96734484ee642f761be2f3a4d0c (diff)
parentfd957ec7f46f9b7b75b19958bdee371b2ae45862 (diff)
Merge pull request #11028 from nielsvanvelzen/api-userid-optional2
Make userId optional in GetProgramsDto
Diffstat (limited to 'Jellyfin.Api/Controllers/LiveTvController.cs')
-rw-r--r--Jellyfin.Api/Controllers/LiveTvController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/LiveTvController.cs b/Jellyfin.Api/Controllers/LiveTvController.cs
index 78dd7a71c..7768b3c45 100644
--- a/Jellyfin.Api/Controllers/LiveTvController.cs
+++ b/Jellyfin.Api/Controllers/LiveTvController.cs
@@ -636,7 +636,7 @@ public class LiveTvController : BaseJellyfinApiController
[Authorize(Policy = Policies.LiveTvAccess)]
public async Task<ActionResult<QueryResult<BaseItemDto>>> GetPrograms([FromBody] GetProgramsDto body)
{
- var user = body.UserId.IsEmpty() ? null : _userManager.GetUserById(body.UserId);
+ var user = body.UserId.IsNullOrEmpty() ? null : _userManager.GetUserById(body.UserId.Value);
var query = new InternalItemsQuery(user)
{