diff options
| author | cvium <clausvium@gmail.com> | 2020-10-26 11:21:32 +0100 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2020-10-26 11:21:32 +0100 |
| commit | c11f19f09052bea1d386869574505f506a449cf2 (patch) | |
| tree | 65c7695dedfa8e9fc5df218860f019f81297edf3 /Jellyfin.Api/Controllers/ScheduledTasksController.cs | |
| parent | a814d01f8c6edab930877031cd9e323f9ceda9d0 (diff) | |
Fix GET ScheduledTasks return value
Diffstat (limited to 'Jellyfin.Api/Controllers/ScheduledTasksController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/ScheduledTasksController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/ScheduledTasksController.cs b/Jellyfin.Api/Controllers/ScheduledTasksController.cs index ab7920895..68e4f0586 100644 --- a/Jellyfin.Api/Controllers/ScheduledTasksController.cs +++ b/Jellyfin.Api/Controllers/ScheduledTasksController.cs @@ -36,7 +36,7 @@ namespace Jellyfin.Api.Controllers /// <returns>The list of scheduled tasks.</returns> [HttpGet] [ProducesResponseType(StatusCodes.Status200OK)] - public IEnumerable<IScheduledTaskWorker> GetTasks( + public IEnumerable<TaskInfo> GetTasks( [FromQuery] bool? isHidden, [FromQuery] bool? isEnabled) { @@ -57,7 +57,7 @@ namespace Jellyfin.Api.Controllers } } - yield return task; + yield return ScheduledTaskHelpers.GetTaskInfo(task); } } |
