aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/ScheduledTasksController.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-09-07 14:07:15 -0600
committercrobibero <cody@robibe.ro>2020-09-07 14:07:15 -0600
commit7de0fcfc948da26c4d9be95e6712b47bed0590db (patch)
treee37320deba934fa88847511f2ac37926767337f7 /Jellyfin.Api/Controllers/ScheduledTasksController.cs
parent26c432b56489ec68c0cb708982c6939bf8e6e0e5 (diff)
parent386ffd1b65ea3ea6d1ba63c1818ee99e90a4e8e6 (diff)
Merge remote-tracking branch 'upstream/master' into startup-complete
Diffstat (limited to 'Jellyfin.Api/Controllers/ScheduledTasksController.cs')
-rw-r--r--Jellyfin.Api/Controllers/ScheduledTasksController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/ScheduledTasksController.cs b/Jellyfin.Api/Controllers/ScheduledTasksController.cs
index e672070c0..3206f2734 100644
--- a/Jellyfin.Api/Controllers/ScheduledTasksController.cs
+++ b/Jellyfin.Api/Controllers/ScheduledTasksController.cs
@@ -94,7 +94,7 @@ namespace Jellyfin.Api.Controllers
[HttpPost("Running/{taskId}")]
[ProducesResponseType(StatusCodes.Status204NoContent)]
[ProducesResponseType(StatusCodes.Status404NotFound)]
- public ActionResult StartTask([FromRoute] string? taskId)
+ public ActionResult StartTask([FromRoute, Required] string? taskId)
{
var task = _taskManager.ScheduledTasks.FirstOrDefault(o =>
o.Id.Equals(taskId, StringComparison.OrdinalIgnoreCase));