- (person, community, post, site)
- }
-
- fn cleanup(data: (ApubPerson, ApubCommunity, ApubPost, ApubSite), context: &LemmyContext) {
- let conn = &mut context.pool().get().unwrap();
- Post::delete(conn, data.2.id).unwrap();
- Community::delete(conn, data.1.id).unwrap();
- Person::delete(conn, data.0.id).unwrap();
- Site::delete(conn, data.3.id).unwrap();
+ Site::delete(&mut context.pool(), data.3.id).await.unwrap();
+ LocalSite::delete(&mut context.pool()).await.unwrap();