1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-03-05 13:20:20 -05:00

Fix task endpoint

This commit is contained in:
Mark McDowall
2025-11-11 20:15:31 -08:00
parent 4071278183
commit e89d58985a

View File

@@ -30,21 +30,6 @@ public class TaskController : RestControllerWithSignalR<TaskResource, ScheduledT
.ToList();
}
[HttpGet("{id:int}")]
[Produces("application/json")]
public ActionResult<TaskResource> GetById(int id)
{
var task = _taskManager.GetAll()
.SingleOrDefault(t => t.Id == id);
if (task == null)
{
return NotFound();
}
return ConvertToResource(task);
}
protected override TaskResource? GetResourceById(int id)
{
var task = _taskManager.GetAll()