Fix bulk queue and blacklisk endpoints

pull/1017/head
ta264 4 years ago
parent 4a7b14fa39
commit 146fe04cce

@ -146,6 +146,7 @@ export const actionHandlers = handleThunks({
url: '/blacklist/bulk', url: '/blacklist/bulk',
method: 'DELETE', method: 'DELETE',
dataType: 'json', dataType: 'json',
contentType: 'application/json',
data: JSON.stringify({ ids }) data: JSON.stringify({ ids })
}).request; }).request;

@ -69,7 +69,7 @@ namespace Readarr.Api.V1.Queue
} }
} }
[HttpDelete] [HttpDelete("bulk")]
public object RemoveMany([FromBody] QueueBulkResource resource, [FromQuery] bool removeFromClient = true, [FromQuery] bool blacklist = false, [FromQuery] bool skipReDownload = false) public object RemoveMany([FromBody] QueueBulkResource resource, [FromQuery] bool removeFromClient = true, [FromQuery] bool blacklist = false, [FromQuery] bool skipReDownload = false)
{ {
var trackedDownloadIds = new List<string>(); var trackedDownloadIds = new List<string>();

Loading…
Cancel
Save