fix(sonarr): Pass series ID alognside all GetEpisodes events when publishing to the networking channel

This commit is contained in:
2024-12-17 23:57:13 -07:00
parent 30ba1f3317
commit 2ecc591966
6 changed files with 36 additions and 85 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, SonarrListCommand> for SonarrListCommandH
SonarrListCommand::Episodes { series_id } => {
let resp = self
.network
.handle_network_event(SonarrEvent::GetEpisodes(Some(series_id)).into())
.handle_network_event(SonarrEvent::GetEpisodes(series_id).into())
.await?;
serde_json::to_string_pretty(&resp)?
}
+1 -1
View File
@@ -329,7 +329,7 @@ mod tests {
mock_network
.expect_handle_network_event()
.with(eq::<NetworkEvent>(
SonarrEvent::GetEpisodes(Some(expected_series_id)).into(),
SonarrEvent::GetEpisodes(expected_series_id).into(),
))
.times(1)
.returning(|_| {