fix: do i need to group by more?

This commit is contained in:
əlemi 2024-06-08 04:05:01 +02:00
parent 2d6ab97820
commit 216c08c623
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -18,6 +18,8 @@ impl Query {
.add(model::object::Column::Id.is_not_null())
)
.group_by(model::activity::Column::Internal)
.group_by(model::object::Column::Internal)
.group_by(model::like::Column::Internal)
.order_by(model::addressing::Column::Published, Order::Desc)
.select_only();
@ -47,6 +49,7 @@ impl Query {
// .distinct()
.join(sea_orm::JoinType::InnerJoin, model::addressing::Relation::Objects.def())
.group_by(model::object::Column::Internal)
.group_by(model::like::Column::Internal)
.order_by(model::addressing::Column::Published, Order::Desc)
.select_only();