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

This commit is contained in:
2024-12-18 00:07:59 -07:00
parent 64ecc38073
commit 924f8d5eff
6 changed files with 10 additions and 81 deletions
+1 -1
View File
@@ -208,7 +208,7 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, SonarrListCommand> for SonarrListCommandH
} => {
let logs = self
.network
.handle_network_event(SonarrEvent::GetLogs(Some(events)).into())
.handle_network_event(SonarrEvent::GetLogs(events).into())
.await?;
if output_in_log_format {
+1 -1
View File
@@ -407,7 +407,7 @@ mod tests {
mock_network
.expect_handle_network_event()
.with(eq::<NetworkEvent>(
SonarrEvent::GetLogs(Some(expected_events)).into(),
SonarrEvent::GetLogs(expected_events).into(),
))
.times(1)
.returning(|_| {