Explorar o código

Fix GET ScheduledTasks return value

cvium %!s(int64=4) %!d(string=hai) anos
pai
achega
c11f19f090
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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);
             }
         }