mirror of https://github.com/lidarr/Lidarr
Fixed: Workaround net6 object serialization issues
This commit is contained in:
parent
814d75c022
commit
25914ddf39
|
@ -37,7 +37,7 @@ namespace Lidarr.Api.V1.Blocklist
|
|||
{
|
||||
_blocklistService.Delete(resource.Ids);
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ namespace Lidarr.Api.V1.History
|
|||
public object MarkAsFailed([FromBody] int id)
|
||||
{
|
||||
_failedDownloadService.MarkAsFailed(id);
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -105,7 +105,7 @@ namespace Lidarr.Api.V1
|
|||
public object DeleteProvider(int id)
|
||||
{
|
||||
_providerFactory.Delete(id);
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
|
||||
[HttpGet("schema")]
|
||||
|
|
|
@ -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 { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,7 +86,7 @@ namespace Lidarr.Api.V1.Queue
|
|||
|
||||
_trackedDownloadService.StopTracking(trackedDownloadIds);
|
||||
|
||||
return new object();
|
||||
return new { };
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
|
|
Loading…
Reference in New Issue