From 146fe04cceccca304f33e9877f762d3ed4593255 Mon Sep 17 00:00:00 2001 From: ta264 Date: Wed, 5 May 2021 21:23:15 +0100 Subject: [PATCH] Fix bulk queue and blacklisk endpoints --- frontend/src/Store/Actions/blacklistActions.js | 1 + src/Readarr.Api.V1/Queue/QueueController.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/Store/Actions/blacklistActions.js b/frontend/src/Store/Actions/blacklistActions.js index 7d3496043..80865eab3 100644 --- a/frontend/src/Store/Actions/blacklistActions.js +++ b/frontend/src/Store/Actions/blacklistActions.js @@ -146,6 +146,7 @@ export const actionHandlers = handleThunks({ url: '/blacklist/bulk', method: 'DELETE', dataType: 'json', + contentType: 'application/json', data: JSON.stringify({ ids }) }).request; diff --git a/src/Readarr.Api.V1/Queue/QueueController.cs b/src/Readarr.Api.V1/Queue/QueueController.cs index 15cd95dc1..2a4bdf50b 100644 --- a/src/Readarr.Api.V1/Queue/QueueController.cs +++ b/src/Readarr.Api.V1/Queue/QueueController.cs @@ -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) { var trackedDownloadIds = new List();