refactor(network): Changed the toggle episode monitoring handler to simply return empty since the response is always empty from Sonarr

This commit is contained in:
2024-12-13 14:45:06 -07:00
parent d1ffd0d77f
commit 4001dee1bd
2 changed files with 6 additions and 9 deletions
+2 -2
View File
@@ -2538,7 +2538,7 @@ impl<'a, 'b> Network<'a, 'b> {
.await
}
async fn toggle_sonarr_episode_monitoring(&mut self, episode_id: Option<i64>) -> Result<Value> {
async fn toggle_sonarr_episode_monitoring(&mut self, episode_id: Option<i64>) -> Result<()> {
let event = SonarrEvent::ToggleEpisodeMonitoring(episode_id);
let detail_event = SonarrEvent::GetEpisodeDetails(None);
@@ -2592,7 +2592,7 @@ impl<'a, 'b> Network<'a, 'b> {
.await;
self
.handle_request::<MonitorEpisodeBody, Value>(request_props, |_, _| ())
.handle_request::<MonitorEpisodeBody, ()>(request_props, |_, _| ())
.await
}