mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 07:10:34 +02:00
Apply review suggestions
This commit is contained in:
parent
f67daa84b0
commit
c998935d29
|
@ -3,8 +3,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using MediaBrowser.Controller.Net;
|
using Jellyfin.Api.Constants;
|
||||||
using MediaBrowser.Model.Tasks;
|
using MediaBrowser.Model.Tasks;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
||||||
|
@ -14,7 +15,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Scheduled Tasks Controller.
|
/// Scheduled Tasks Controller.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
// [Authenticated]
|
[Authorize(Policy = Policies.RequiresElevation)]
|
||||||
public class ScheduledTasksController : BaseJellyfinApiController
|
public class ScheduledTasksController : BaseJellyfinApiController
|
||||||
{
|
{
|
||||||
private readonly ITaskManager _taskManager;
|
private readonly ITaskManager _taskManager;
|
||||||
|
@ -82,8 +83,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
return NotFound();
|
return NotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
var result = ScheduledTaskHelpers.GetTaskInfo(task);
|
return ScheduledTaskHelpers.GetTaskInfo(task);
|
||||||
return Ok(result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in a new issue