diff --git a/aquadoggo/src/materializer/tasks/reduce.rs b/aquadoggo/src/materializer/tasks/reduce.rs index 60217feca..5d9a04b4a 100644 --- a/aquadoggo/src/materializer/tasks/reduce.rs +++ b/aquadoggo/src/materializer/tasks/reduce.rs @@ -226,16 +226,13 @@ async fn reduce_document + WithPublicKey>( let mut tasks = vec![]; - // If the document was deleted, then we return nothing if document.is_deleted() { info!( "Deleted {} final view {}", document.display(), document.view_id().display() ); - } - - if document.is_edited() { + } else if document.is_edited() { info!( "Updated {} latest view {}", document.display(),