diff --git a/frontend/src/Store/Actions/artistHistoryActions.js b/frontend/src/Store/Actions/artistHistoryActions.js index b023cfaf1..59ce098d0 100644 --- a/frontend/src/Store/Actions/artistHistoryActions.js +++ b/frontend/src/Store/Actions/artistHistoryActions.js @@ -78,12 +78,9 @@ export const actionHandlers = handleThunks({ } = payload; const promise = createAjaxRequest({ - url: '/history/failed', + url: `/history/failed/${historyId}`, method: 'POST', - dataType: 'json', - data: { - id: historyId - } + dataType: 'json' }).request; promise.done(() => { diff --git a/frontend/src/Store/Actions/historyActions.js b/frontend/src/Store/Actions/historyActions.js index d8b524c6c..52c1d0ad0 100644 --- a/frontend/src/Store/Actions/historyActions.js +++ b/frontend/src/Store/Actions/historyActions.js @@ -262,12 +262,9 @@ export const actionHandlers = handleThunks({ })); const promise = createAjaxRequest({ - url: '/history/failed', + url: `/history/failed/${id}`, method: 'POST', - dataType: 'json', - data: { - id - } + dataType: 'json' }).request; promise.done(() => { diff --git a/src/Lidarr.Api.V1/History/HistoryController.cs b/src/Lidarr.Api.V1/History/HistoryController.cs index 75194f662..a87d1d8d7 100644 --- a/src/Lidarr.Api.V1/History/HistoryController.cs +++ b/src/Lidarr.Api.V1/History/HistoryController.cs @@ -105,8 +105,8 @@ namespace Lidarr.Api.V1.History return _historyService.GetByArtist(artistId, eventType).Select(h => MapToResource(h, includeArtist, includeAlbum, includeTrack)).ToList(); } - [HttpPost("failed")] - public object MarkAsFailed([FromBody] int id) + [HttpPost("failed/{id}")] + public object MarkAsFailed([FromRoute] int id) { _failedDownloadService.MarkAsFailed(id); return new { };