1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fixed: History failed endpoint uses Id in Route

Fixes #6708
This commit is contained in:
Qstick 2021-11-06 09:28:11 -05:00
parent 5ce1829709
commit 13c03d9958

View File

@ -94,9 +94,8 @@ public List<HistoryResource> GetMovieHistory(int movieId, MovieHistoryEventType?
return _historyService.GetByMovieId(movieId, eventType).Select(h => MapToResource(h, includeMovie)).ToList(); return _historyService.GetByMovieId(movieId, eventType).Select(h => MapToResource(h, includeMovie)).ToList();
} }
// v4 TODO: Getting the ID from the form is atypical, consider removing. [HttpPost("failed/{id}")]
[HttpPost("failed")] public object MarkAsFailed([FromRoute] int id)
public object MarkAsFailed([FromBody] int id)
{ {
_failedDownloadService.MarkAsFailed(id); _failedDownloadService.MarkAsFailed(id);
return new object(); return new object();