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

This commit is contained in:
2024-12-18 00:05:22 -07:00
parent 5f94dbcabe
commit 64ecc38073
6 changed files with 32 additions and 151 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, SonarrListCommand> for SonarrListCommandH
SonarrListCommand::EpisodeHistory { episode_id } => {
let resp = self
.network
.handle_network_event(SonarrEvent::GetEpisodeHistory(Some(episode_id)).into())
.handle_network_event(SonarrEvent::GetEpisodeHistory(episode_id).into())
.await?;
serde_json::to_string_pretty(&resp)?
}
+1 -1
View File
@@ -461,7 +461,7 @@ mod tests {
mock_network
.expect_handle_network_event()
.with(eq::<NetworkEvent>(
SonarrEvent::GetEpisodeHistory(Some(expected_episode_id)).into(),
SonarrEvent::GetEpisodeHistory(expected_episode_id).into(),
))
.times(1)
.returning(|_| {