From 9e5740d6e4a0ae49ae5ca25fcd78c9b5c3773836 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 8 Jun 2024 04:54:48 +0200 Subject: [PATCH] fix: oops keep mixing up activity and object... --- upub/core/src/selector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upub/core/src/selector.rs b/upub/core/src/selector.rs index d7493ebb..0d0c2d6b 100644 --- a/upub/core/src/selector.rs +++ b/upub/core/src/selector.rs @@ -47,7 +47,7 @@ impl Query { pub fn objects(my_id: Option) -> Select { let mut select = model::addressing::Entity::find() .distinct_on([ - (model::activity::Entity, model::activity::Column::Internal).into_column_ref(), + (model::object::Entity, model::object::Column::Internal).into_column_ref(), (model::addressing::Entity, model::addressing::Column::Published).into_column_ref(), ]) .join(sea_orm::JoinType::InnerJoin, model::addressing::Relation::Objects.def())