forked from alemi/upub
fix: oops keep mixing up activity and object...
This commit is contained in:
parent
1852f78a2f
commit
9e5740d6e4
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ impl Query {
|
|||
pub fn objects(my_id: Option<i64>) -> Select<model::addressing::Entity> {
|
||||
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())
|
||||
|
|
Loading…
Reference in a new issue