fix(sonarr): Pass history events alongside all GetHistory events when publishing to the networking channel

This commit is contained in:
2024-12-17 23:40:23 -07:00
parent 22fe1a8f73
commit 4fdf9b3df1
6 changed files with 12 additions and 87 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, SonarrListCommand> for SonarrListCommandH
SonarrListCommand::History { events: items } => {
let resp = self
.network
.handle_network_event(SonarrEvent::GetHistory(Some(items)).into())
.handle_network_event(SonarrEvent::GetHistory(items).into())
.await?;
serde_json::to_string_pretty(&resp)?
}
+1 -1
View File
@@ -381,7 +381,7 @@ mod tests {
mock_network
.expect_handle_network_event()
.with(eq::<NetworkEvent>(
SonarrEvent::GetHistory(Some(expected_events)).into(),
SonarrEvent::GetHistory(expected_events).into(),
))
.times(1)
.returning(|_| {