From 350fba29a827325b4eec577d17f2d5030ffc6a12 Mon Sep 17 00:00:00 2001 From: dull b Date: Mon, 3 Jul 2023 18:42:04 +0000 Subject: [PATCH] fix --- crates/db_schema/src/aggregates/person_aggregates.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/db_schema/src/aggregates/person_aggregates.rs b/crates/db_schema/src/aggregates/person_aggregates.rs index c0aa0cb77..6ec41b196 100644 --- a/crates/db_schema/src/aggregates/person_aggregates.rs +++ b/crates/db_schema/src/aggregates/person_aggregates.rs @@ -145,21 +145,21 @@ mod tests { assert_eq!(0, after_post_like_remove.post_score); Comment::update( - pool, + &mut *conn, inserted_comment.id, &CommentUpdateForm::builder().removed(Some(true)).build(), ) .await .unwrap(); Comment::update( - pool, + &mut *conn, inserted_child_comment.id, &CommentUpdateForm::builder().removed(Some(true)).build(), ) .await .unwrap(); - let after_parent_comment_removed = PersonAggregates::read(pool, inserted_person.id) + let after_parent_comment_removed = PersonAggregates::read(&mut *conn, inserted_person.id) .await .unwrap(); assert_eq!(0, after_parent_comment_removed.comment_count);