From 86d7086aadabd370cab4814c185bb6a89f23a74d Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 16 Apr 2024 08:51:40 -0400 Subject: [PATCH] Removing local_user from LocalImageView. --- crates/db_views/src/local_image_view.rs | 6 +----- crates/db_views/src/structs.rs | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/db_views/src/local_image_view.rs b/crates/db_views/src/local_image_view.rs index d501bda63..7b5b97095 100644 --- a/crates/db_views/src/local_image_view.rs +++ b/crates/db_views/src/local_image_view.rs @@ -19,11 +19,7 @@ impl LocalImageView { let mut query = local_image::table .inner_join(local_user::table) .inner_join(person::table.on(local_user::person_id.eq(person::id))) - .select(( - local_image::all_columns, - local_user::all_columns, - person::all_columns, - )) + .select((local_image::all_columns, person::all_columns)) .order_by(local_image::published.desc()) .into_boxed(); diff --git a/crates/db_views/src/structs.rs b/crates/db_views/src/structs.rs index df7ec5fd0..4311710ab 100644 --- a/crates/db_views/src/structs.rs +++ b/crates/db_views/src/structs.rs @@ -223,6 +223,5 @@ pub struct VoteView { /// A local image view. pub struct LocalImageView { pub local_image: LocalImage, - pub local_user: LocalUser, pub person: Person, }