fix: Pass the indexer ID in with the DeleteIndexer event when sending to the networking channel

This commit is contained in:
Dark-Alex-17 committed 2024-12-17 15:21:34 -07:00
1 parent a7da73300c
commit d73dfb9fc7
6 files changed
+50 -66

No files matched your search

+1 -1
View File
@@ -103,7 +103,7 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, RadarrDeleteCommand> for RadarrDeleteComm
RadarrDeleteCommand::Indexer { indexer_id } => {
let resp = self
.network
.handle_network_event(RadarrEvent::DeleteIndexer(Some(indexer_id)).into())
.handle_network_event(RadarrEvent::DeleteIndexer(indexer_id).into())
.await?;
serde_json::to_string_pretty(&resp)?
}
@@ -325,7 +325,7 @@ mod tests {
mock_network
.expect_handle_network_event()
.with(eq::<NetworkEvent>(
RadarrEvent::DeleteIndexer(Some(expected_indexer_id)).into(),
RadarrEvent::DeleteIndexer(expected_indexer_id).into(),
))
.times(1)
.returning(|_| {