fix: also need to group by addressing?
This commit is contained in:
parent
216c08c623
commit
13f23d147a
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@ impl Query {
|
|||
.group_by(model::activity::Column::Internal)
|
||||
.group_by(model::object::Column::Internal)
|
||||
.group_by(model::like::Column::Internal)
|
||||
.group_by(model::addressing::Column::Internal)
|
||||
.order_by(model::addressing::Column::Published, Order::Desc)
|
||||
.select_only();
|
||||
|
||||
|
@ -50,6 +51,7 @@ impl Query {
|
|||
.join(sea_orm::JoinType::InnerJoin, model::addressing::Relation::Objects.def())
|
||||
.group_by(model::object::Column::Internal)
|
||||
.group_by(model::like::Column::Internal)
|
||||
.group_by(model::addressing::Column::Internal)
|
||||
.order_by(model::addressing::Column::Published, Order::Desc)
|
||||
.select_only();
|
||||
|
||||
|
|
Loading…
Reference in a new issue