Fix bulk queue and blacklisk endpoints

This commit is contained in:
ta264 2021-05-05 21:23:15 +01:00
parent 4a7b14fa39
commit 146fe04cce
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -69,7 +69,7 @@ public void RemoveAction(int id, bool removeFromClient = true, bool blacklist =
}
}
[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<string>();