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

This commit is contained in:
2024-12-18 00:39:50 -07:00
parent bafaf7ca7a
commit ec8d748991
6 changed files with 21 additions and 125 deletions
+1 -1
View File
@@ -260,7 +260,7 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, SonarrListCommand> for SonarrListCommandH
SonarrListCommand::SeriesHistory { series_id } => {
let resp = self
.network
.handle_network_event(SonarrEvent::GetSeriesHistory(Some(series_id)).into())
.handle_network_event(SonarrEvent::GetSeriesHistory(series_id).into())
.await?;
serde_json::to_string_pretty(&resp)?
}
+1 -1
View File
@@ -435,7 +435,7 @@ mod tests {
mock_network
.expect_handle_network_event()
.with(eq::<NetworkEvent>(
SonarrEvent::GetSeriesHistory(Some(expected_series_id)).into(),
SonarrEvent::GetSeriesHistory(expected_series_id).into(),
))
.times(1)
.returning(|_| {