Workaround .net error serializing new object()

See https://github.com/dotnet/runtime/issues/61995
This commit is contained in:
ta264
2021-12-01 21:23:22 +00:00
parent bc678e1976
commit 1d694af98e
6 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -102,9 +102,10 @@ namespace Readarr.Api.V1
}
[RestDeleteById]
public void DeleteProvider(int id)
public object DeleteProvider(int id)
{
_providerFactory.Delete(id);
return new { };
}
[HttpGet("schema")]