Browse Source

Merge pull request #4371 from cvium/fix_scheduledtasks_endpoint

Fix GET ScheduledTasks return value
Bond-009 4 năm trước cách đây
mục cha
commit
6cadbe8d9e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Jellyfin.Api/Controllers/ScheduledTasksController.cs

+ 2 - 2
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);
             }
         }