fix: Pass the download ID directly in the DeleteDownload event when publishing into the networking channel

This commit is contained in:
2024-12-17 15:14:17 -07:00
parent a308b8fe95
commit a7da73300c
6 changed files with 43 additions and 59 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, RadarrDeleteCommand> for RadarrDeleteComm
RadarrDeleteCommand::Download { download_id } => {
let resp = self
.network
.handle_network_event(RadarrEvent::DeleteDownload(Some(download_id)).into())
.handle_network_event(RadarrEvent::DeleteDownload(download_id).into())
.await?;
serde_json::to_string_pretty(&resp)?
}
@@ -299,7 +299,7 @@ mod tests {
mock_network
.expect_handle_network_event()
.with(eq::<NetworkEvent>(
RadarrEvent::DeleteDownload(Some(expected_download_id)).into(),
RadarrEvent::DeleteDownload(expected_download_id).into(),
))
.times(1)
.returning(|_| {