diff --git a/src/model/addressing.rs b/src/model/addressing.rs index 7c75ebd6..5c517c7c 100644 --- a/src/model/addressing.rs +++ b/src/model/addressing.rs @@ -85,6 +85,7 @@ impl FromQueryResult for EmbeddedActivity { impl Entity { pub fn find_activities() -> Select { let mut select = Entity::find() + .distinct() .select_only() .join(sea_orm::JoinType::InnerJoin, Relation::Activity.def()) // INNERJOIN: filter out addressings for which we don't have an activity anymore @@ -104,6 +105,7 @@ impl Entity { pub fn find_objects() -> Select { let mut select = Entity::find() + .distinct() .select_only() .join(sea_orm::JoinType::InnerJoin, Relation::Object.def()); // INNERJOIN: filter out addressings for which we don't have an activity anymore