Fixed: Workaround net6 object serialization issues

This commit is contained in:
Qstick 2021-12-24 12:31:18 -06:00
parent 814d75c022
commit 25914ddf39
5 changed files with 6 additions and 6 deletions

View File

@ -37,7 +37,7 @@ namespace Lidarr.Api.V1.Blocklist
{
_blocklistService.Delete(resource.Ids);
return new object();
return new { };
}
}
}

View File

@ -109,7 +109,7 @@ namespace Lidarr.Api.V1.History
public object MarkAsFailed([FromBody] int id)
{
_failedDownloadService.MarkAsFailed(id);
return new object();
return new { };
}
}
}

View File

@ -105,7 +105,7 @@ namespace Lidarr.Api.V1
public object DeleteProvider(int id)
{
_providerFactory.Delete(id);
return new object();
return new { };
}
[HttpGet("schema")]

View File

@ -31,7 +31,7 @@ namespace Lidarr.Api.V1.Queue
_downloadService.DownloadReport(pendingRelease.RemoteAlbum);
return new object();
return new { };
}
[HttpPost("grab/bulk")]
@ -49,7 +49,7 @@ namespace Lidarr.Api.V1.Queue
_downloadService.DownloadReport(pendingRelease.RemoteAlbum);
}
return new object();
return new { };
}
}
}

View File

@ -86,7 +86,7 @@ namespace Lidarr.Api.V1.Queue
_trackedDownloadService.StopTracking(trackedDownloadIds);
return new object();
return new { };
}
[HttpGet]