mirror of
https://github.com/Readarr/Readarr
synced 2025-12-26 18:22:32 +01:00
Workaround .net error serializing new object()
See https://github.com/dotnet/runtime/issues/61995
This commit is contained in:
parent
bc678e1976
commit
1d694af98e
6 changed files with 8 additions and 7 deletions
|
|
@ -94,7 +94,7 @@ public object DeleteAuthor([FromBody] AuthorEditorResource resource)
|
|||
_authorService.DeleteAuthor(authorId, false);
|
||||
}
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public object Remove([FromBody] BlocklistBulkResource resource)
|
|||
{
|
||||
_blocklistService.Delete(resource.Ids);
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ public List<HistoryResource> GetAuthorHistory(int authorId, int? bookId = null,
|
|||
public object MarkAsFailed([FromBody] int id)
|
||||
{
|
||||
_failedDownloadService.MarkAsFailed(id);
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,9 +102,10 @@ private TProviderDefinition GetDefinition(TProviderResource providerResource, bo
|
|||
}
|
||||
|
||||
[RestDeleteById]
|
||||
public void DeleteProvider(int id)
|
||||
public object DeleteProvider(int id)
|
||||
{
|
||||
_providerFactory.Delete(id);
|
||||
return new { };
|
||||
}
|
||||
|
||||
[HttpGet("schema")]
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public object Grab(int id)
|
|||
|
||||
_downloadService.DownloadReport(pendingRelease.RemoteBook);
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
|
||||
[HttpPost("grab/bulk")]
|
||||
|
|
@ -49,7 +49,7 @@ public object Grab([FromBody] QueueBulkResource resource)
|
|||
_downloadService.DownloadReport(pendingRelease.RemoteBook);
|
||||
}
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ public object RemoveMany([FromBody] QueueBulkResource resource, [FromQuery] bool
|
|||
|
||||
_trackedDownloadService.StopTracking(trackedDownloadIds);
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
|
|
|
|||
Loading…
Reference in a new issue