- let updated_post = Post::update(conn, inserted_post.id, &new_post_update).unwrap();
-
- let like_removed = PostLike::remove(conn, inserted_person.id, inserted_post.id).unwrap();
- let saved_removed = PostSaved::unsave(conn, &post_saved_form).unwrap();
- let read_removed = PostRead::mark_as_unread(conn, &post_read_form).unwrap();
- let num_deleted = Post::delete(conn, inserted_post.id).unwrap();
- Community::delete(conn, inserted_community.id).unwrap();
- Person::delete(conn, inserted_person.id).unwrap();
- Instance::delete(conn, inserted_instance.id).unwrap();
+ let updated_post = Post::update(pool, inserted_post.id, &new_post_update)
+ .await
+ .unwrap();
+
+ let like_removed = PostLike::remove(pool, inserted_person.id, inserted_post.id)
+ .await
+ .unwrap();
+ let saved_removed = PostSaved::unsave(pool, &post_saved_form).await.unwrap();
+ let read_removed = PostRead::mark_as_unread(pool, &post_read_form)
+ .await
+ .unwrap();
+ let num_deleted = Post::delete(pool, inserted_post.id).await.unwrap();
+ Community::delete(pool, inserted_community.id)
+ .await
+ .unwrap();
+ Person::delete(pool, inserted_person.id).await.unwrap();
+ Instance::delete(pool, inserted_instance.id).await.unwrap();