fix(radarr): Pass the number of log events to fetch in with the GetLogs event when publishing to the networking channel
This commit is contained in:
@@ -131,7 +131,7 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, RadarrListCommand> for RadarrListCommandH
|
||||
} => {
|
||||
let logs = self
|
||||
.network
|
||||
.handle_network_event(RadarrEvent::GetLogs(Some(events)).into())
|
||||
.handle_network_event(RadarrEvent::GetLogs(events).into())
|
||||
.await?;
|
||||
|
||||
if output_in_log_format {
|
||||
|
||||
@@ -189,7 +189,7 @@ mod tests {
|
||||
mock_network
|
||||
.expect_handle_network_event()
|
||||
.with(eq::<NetworkEvent>(
|
||||
RadarrEvent::GetLogs(Some(expected_events)).into(),
|
||||
RadarrEvent::GetLogs(expected_events).into(),
|
||||
))
|
||||
.times(1)
|
||||
.returning(|_| {
|
||||
|
||||
Reference in New Issue
Block a user