mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-24 23:02:44 +00:00
Fixed: Workaround net6 object serialization issues
This commit is contained in:
parent
814d75c022
commit
25914ddf39
5 changed files with 6 additions and 6 deletions
|
@ -37,7 +37,7 @@ public object Remove([FromBody] BlocklistBulkResource resource)
|
|||
{
|
||||
_blocklistService.Delete(resource.Ids);
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ public List<HistoryResource> GetArtistHistory(int artistId, int? albumId = null,
|
|||
public object MarkAsFailed([FromBody] int id)
|
||||
{
|
||||
_failedDownloadService.MarkAsFailed(id);
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ private TProviderDefinition GetDefinition(TProviderResource providerResource, bo
|
|||
public object DeleteProvider(int id)
|
||||
{
|
||||
_providerFactory.Delete(id);
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
|
||||
[HttpGet("schema")]
|
||||
|
|
|
@ -31,7 +31,7 @@ public object Grab(int id)
|
|||
|
||||
_downloadService.DownloadReport(pendingRelease.RemoteAlbum);
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
|
||||
[HttpPost("grab/bulk")]
|
||||
|
@ -49,7 +49,7 @@ public object Grab([FromBody] QueueBulkResource resource)
|
|||
_downloadService.DownloadReport(pendingRelease.RemoteAlbum);
|
||||
}
|
||||
|
||||
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