mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-06 08:34:28 +01:00
Fixed: Workaround net6 object serialization issues
Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
parent
b5a2f68bde
commit
89510c4a65
3 changed files with 4 additions and 3 deletions
|
|
@ -14,7 +14,6 @@ function createRemoveItemHandler(section, url) {
|
|||
|
||||
const ajaxOptions = {
|
||||
url: `${url}/${id}?${$.param(queryParams, true)}`,
|
||||
dataType: 'text',
|
||||
method: 'DELETE'
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ public object DeleteIndexers([FromBody] IndexerEditorResource resource)
|
|||
{
|
||||
_indexerService.DeleteIndexers(resource.IndexerIds);
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,9 +102,11 @@ private TProviderDefinition GetDefinition(TProviderResource providerResource, bo
|
|||
}
|
||||
|
||||
[RestDeleteById]
|
||||
public void DeleteProvider(int id)
|
||||
public object DeleteProvider(int id)
|
||||
{
|
||||
_providerFactory.Delete(id);
|
||||
|
||||
return new { };
|
||||
}
|
||||
|
||||
[HttpGet("schema")]
|
||||
|
|
|
|||
Loading…
Reference in a new issue