mirror of
https://github.com/Sonarr/Sonarr
synced 2025-12-06 08:28:37 +01:00
Fix task endpoint
This commit is contained in:
parent
4071278183
commit
e89d58985a
1 changed files with 0 additions and 15 deletions
|
|
@ -30,21 +30,6 @@ public ActionResult<List<TaskResource>> GetAll()
|
|||
.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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue