fix(radarr): Construct and pass edit collection parameters alongside the EditCollection event when publishing to the networking channel
This commit is contained in:
@@ -420,7 +420,7 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, RadarrEditCommand> for RadarrEditCommandH
|
||||
};
|
||||
self
|
||||
.network
|
||||
.handle_network_event(RadarrEvent::EditCollection(Some(edit_collection_params)).into())
|
||||
.handle_network_event(RadarrEvent::EditCollection(edit_collection_params).into())
|
||||
.await?;
|
||||
"Collection updated".to_owned()
|
||||
}
|
||||
|
||||
@@ -1047,7 +1047,7 @@ mod tests {
|
||||
mock_network
|
||||
.expect_handle_network_event()
|
||||
.with(eq::<NetworkEvent>(
|
||||
RadarrEvent::EditCollection(Some(expected_edit_collection_params)).into(),
|
||||
RadarrEvent::EditCollection(expected_edit_collection_params).into(),
|
||||
))
|
||||
.times(1)
|
||||
.returning(|_| {
|
||||
@@ -1089,7 +1089,7 @@ mod tests {
|
||||
mock_network
|
||||
.expect_handle_network_event()
|
||||
.with(eq::<NetworkEvent>(
|
||||
RadarrEvent::EditCollection(Some(expected_edit_collection_params)).into(),
|
||||
RadarrEvent::EditCollection(expected_edit_collection_params).into(),
|
||||
))
|
||||
.times(1)
|
||||
.returning(|_| {
|
||||
@@ -1131,7 +1131,7 @@ mod tests {
|
||||
mock_network
|
||||
.expect_handle_network_event()
|
||||
.with(eq::<NetworkEvent>(
|
||||
RadarrEvent::EditCollection(Some(expected_edit_collection_params)).into(),
|
||||
RadarrEvent::EditCollection(expected_edit_collection_params).into(),
|
||||
))
|
||||
.times(1)
|
||||
.returning(|_| {
|
||||
|
||||
Reference in New Issue
Block a user