fix(radarr): Pass in the movie ID alongside the GetMovieHistory event when publishing to the networking channel

This commit is contained in:
2024-12-17 20:50:00 -07:00
parent 4c396c3442
commit 92d9222b05
6 changed files with 14 additions and 61 deletions
+2 -1
View File
@@ -358,6 +358,7 @@ mod tests {
#[tokio::test]
async fn test_dispatch_by_movie_history_block() {
let (mut app, mut sync_network_rx) = construct_app_unit();
app.data.radarr_data.movies.set_items(vec![Movie { id: 1, ..Movie::default() }]);
app
.dispatch_by_radarr_block(&ActiveRadarrBlock::MovieHistory)
@@ -366,7 +367,7 @@ mod tests {
assert!(app.is_loading);
assert_eq!(
sync_network_rx.recv().await.unwrap(),
RadarrEvent::GetMovieHistory(None).into()
RadarrEvent::GetMovieHistory(1).into()
);
assert!(!app.data.radarr_data.prompt_confirm);
assert_eq!(app.tick_count, 0);