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

This commit is contained in:
Dark-Alex-17 committed 2024-12-18 00:07:59 -07:00
1 parent 64ecc38073
commit 924f8d5eff
6 files changed
+10 -81

No files matched your search

+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(|_| {