From 645e14cc3218fa3da37366f489d431a3bfb98d2b Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 21 Apr 2024 16:39:56 +0200 Subject: [PATCH] fix: ops wrong relation direction --- src/model/addressing.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/model/addressing.rs b/src/model/addressing.rs index 63f14e5..cc46eca 100644 --- a/src/model/addressing.rs +++ b/src/model/addressing.rs @@ -120,8 +120,6 @@ impl Entity { .distinct() .select_only() .join(sea_orm::JoinType::InnerJoin, Relation::Activity.def()) - // INNERJOIN: filter out addressings for which we don't have an activity anymore - // TODO we could in theory return just the link or fetch them again, just ignoring them is mehh .join(sea_orm::JoinType::LeftJoin, crate::model::activity::Relation::Object.def()); for col in crate::model::activity::Column::iter() { @@ -140,9 +138,7 @@ impl Entity { .distinct() .select_only() .join(sea_orm::JoinType::InnerJoin, Relation::Object.def()) - // INNERJOIN: filter out addressings for which we don't have an object anymore - // TODO we could in theory return just the link or fetch them again, just ignoring them is mehh - .join(sea_orm::JoinType::LeftJoin, crate::model::object::Relation::Activity.def().rev()); + .join(sea_orm::JoinType::LeftJoin, crate::model::object::Relation::Activity.def()); for col in crate::model::object::Column::iter() { select = select.select_column_as(col, format!("{}{}", crate::model::object::Entity.table_name(), col.to_string()));