mirror of https://github.com/lidarr/Lidarr
parent
67c96f0b89
commit
9e7d57426f
|
@ -78,12 +78,9 @@ export const actionHandlers = handleThunks({
|
||||||
} = payload;
|
} = payload;
|
||||||
|
|
||||||
const promise = createAjaxRequest({
|
const promise = createAjaxRequest({
|
||||||
url: '/history/failed',
|
url: `/history/failed/${historyId}`,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
dataType: 'json',
|
dataType: 'json'
|
||||||
data: {
|
|
||||||
id: historyId
|
|
||||||
}
|
|
||||||
}).request;
|
}).request;
|
||||||
|
|
||||||
promise.done(() => {
|
promise.done(() => {
|
||||||
|
|
|
@ -262,12 +262,9 @@ export const actionHandlers = handleThunks({
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const promise = createAjaxRequest({
|
const promise = createAjaxRequest({
|
||||||
url: '/history/failed',
|
url: `/history/failed/${id}`,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
dataType: 'json',
|
dataType: 'json'
|
||||||
data: {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}).request;
|
}).request;
|
||||||
|
|
||||||
promise.done(() => {
|
promise.done(() => {
|
||||||
|
|
|
@ -105,8 +105,8 @@ namespace Lidarr.Api.V1.History
|
||||||
return _historyService.GetByArtist(artistId, eventType).Select(h => MapToResource(h, includeArtist, includeAlbum, includeTrack)).ToList();
|
return _historyService.GetByArtist(artistId, eventType).Select(h => MapToResource(h, includeArtist, includeAlbum, includeTrack)).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost("failed")]
|
[HttpPost("failed/{id}")]
|
||||||
public object MarkAsFailed([FromBody] int id)
|
public object MarkAsFailed([FromRoute] int id)
|
||||||
{
|
{
|
||||||
_failedDownloadService.MarkAsFailed(id);
|
_failedDownloadService.MarkAsFailed(id);
|
||||||
return new { };
|
return new { };
|
||||||
|
|
Loading…
Reference in New Issue