Fixed: Workaround net6 object serialization issues

Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
Qstick
2021-12-01 20:39:26 -06:00
parent b5a2f68bde
commit 89510c4a65
3 changed files with 4 additions and 3 deletions

View File

@@ -14,7 +14,6 @@ function createRemoveItemHandler(section, url) {
const ajaxOptions = {
url: `${url}/${id}?${$.param(queryParams, true)}`,
dataType: 'text',
method: 'DELETE'
};

View File

@@ -76,7 +76,7 @@ namespace Prowlarr.Api.V1.Indexers
{
_indexerService.DeleteIndexers(resource.IndexerIds);
return new object();
return new { };
}
}
}

View File

@@ -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")]