- let read_reply = CommentReply::read(&conn, inserted_reply.id).unwrap();
- let updated_reply =
- CommentReply::update(&conn, inserted_reply.id, &comment_reply_form).unwrap();
- Comment::delete(&conn, inserted_comment.id).unwrap();
- Post::delete(&conn, inserted_post.id).unwrap();
- Community::delete(&conn, inserted_community.id).unwrap();
- Person::delete(&conn, inserted_person.id).unwrap();
- Person::delete(&conn, inserted_recipient.id).unwrap();
+ let read_reply = CommentReply::read(pool, inserted_reply.id).await.unwrap();
+
+ let comment_reply_update_form = CommentReplyUpdateForm { read: Some(false) };
+ let updated_reply = CommentReply::update(pool, inserted_reply.id, &comment_reply_update_form)
+ .await
+ .unwrap();
+
+ Comment::delete(pool, inserted_comment.id).await.unwrap();
+ Post::delete(pool, inserted_post.id).await.unwrap();
+ Community::delete(pool, inserted_community.id)
+ .await
+ .unwrap();
+ Person::delete(pool, inserted_person.id).await.unwrap();
+ Person::delete(pool, inserted_recipient.id).await.unwrap();
+ Instance::delete(pool, inserted_instance.id).await.unwrap();