From 89510c4a659e32d7a24764b18bb6686e4e273c21 Mon Sep 17 00:00:00 2001 From: Qstick Date: Wed, 1 Dec 2021 20:39:26 -0600 Subject: [PATCH] Fixed: Workaround net6 object serialization issues Co-Authored-By: ta264 --- .../src/Store/Actions/Creators/createRemoveItemHandler.js | 1 - src/Prowlarr.Api.V1/Indexers/IndexerEditorController.cs | 2 +- src/Prowlarr.Api.V1/ProviderControllerBase.cs | 4 +++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/Store/Actions/Creators/createRemoveItemHandler.js b/frontend/src/Store/Actions/Creators/createRemoveItemHandler.js index 286469d57..dfe29ace8 100644 --- a/frontend/src/Store/Actions/Creators/createRemoveItemHandler.js +++ b/frontend/src/Store/Actions/Creators/createRemoveItemHandler.js @@ -14,7 +14,6 @@ function createRemoveItemHandler(section, url) { const ajaxOptions = { url: `${url}/${id}?${$.param(queryParams, true)}`, - dataType: 'text', method: 'DELETE' }; diff --git a/src/Prowlarr.Api.V1/Indexers/IndexerEditorController.cs b/src/Prowlarr.Api.V1/Indexers/IndexerEditorController.cs index cdf6c2061..bde7f5282 100644 --- a/src/Prowlarr.Api.V1/Indexers/IndexerEditorController.cs +++ b/src/Prowlarr.Api.V1/Indexers/IndexerEditorController.cs @@ -76,7 +76,7 @@ namespace Prowlarr.Api.V1.Indexers { _indexerService.DeleteIndexers(resource.IndexerIds); - return new object(); + return new { }; } } } diff --git a/src/Prowlarr.Api.V1/ProviderControllerBase.cs b/src/Prowlarr.Api.V1/ProviderControllerBase.cs index 4784421db..993357745 100644 --- a/src/Prowlarr.Api.V1/ProviderControllerBase.cs +++ b/src/Prowlarr.Api.V1/ProviderControllerBase.cs @@ -102,9 +102,11 @@ namespace Prowlarr.Api.V1 } [RestDeleteById] - public void DeleteProvider(int id) + public object DeleteProvider(int id) { _providerFactory.Delete(id); + + return new { }; } [HttpGet("schema")]