mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-02-05 15:37:14 +00:00
Workaround .net error serializing new object()
See https://github.com/dotnet/runtime/issues/61995
This commit is contained in:
@@ -94,7 +94,7 @@ namespace Readarr.Api.V1.Author
|
||||
_authorService.DeleteAuthor(authorId, false);
|
||||
}
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Readarr.Api.V1.Blocklist
|
||||
{
|
||||
_blocklistService.Delete(resource.Ids);
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ namespace Readarr.Api.V1.History
|
||||
public object MarkAsFailed([FromBody] int id)
|
||||
{
|
||||
_failedDownloadService.MarkAsFailed(id);
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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")]
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Readarr.Api.V1.Queue
|
||||
|
||||
_downloadService.DownloadReport(pendingRelease.RemoteBook);
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
|
||||
[HttpPost("grab/bulk")]
|
||||
@@ -49,7 +49,7 @@ namespace Readarr.Api.V1.Queue
|
||||
_downloadService.DownloadReport(pendingRelease.RemoteBook);
|
||||
}
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace Readarr.Api.V1.Queue
|
||||
|
||||
_trackedDownloadService.StopTracking(trackedDownloadIds);
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
|
||||
Reference in New Issue
Block a user