]> Untitled Git - lemmy.git/blobdiff - lemmy_db/src/aggregates/site_aggregates.rs
Merge remote-tracking branch 'origin/split-db-workspace' into move_views_to_diesel_split
[lemmy.git] / lemmy_db / src / aggregates / site_aggregates.rs
index df3cad6f1ecff77fdc06c1d80728e41255c90ad3..70997a66a77dd7427216a49901afe49ad6e40e95 100644 (file)
@@ -1,5 +1,5 @@
-use crate::schema::site_aggregates;
 use diesel::{result::Error, *};
+use lemmy_db_schema::schema::site_aggregates;
 use serde::Serialize;
 
 #[derive(Queryable, Associations, Identifiable, PartialEq, Debug, Serialize, Clone)]
@@ -23,18 +23,17 @@ impl SiteAggregates {
 mod tests {
   use crate::{
     aggregates::site_aggregates::SiteAggregates,
-    source::{
-      comment::{Comment, CommentForm},
-      community::{Community, CommunityForm},
-      post::{Post, PostForm},
-      site::{Site, SiteForm},
-      user::{UserForm, User_},
-    },
     tests::establish_unpooled_connection,
     Crud,
     ListingType,
     SortType,
   };
+  use lemmy_db_schema::source::{
+    comment::{Comment, CommentForm},
+    community::{Community, CommunityForm},
+    post::{Post, PostForm},
+    user::{UserForm, User_},
+  };
 
   #[test]
   fn test_crud() {