fix: also need to group by addressing?

This commit is contained in:
əlemi 2024-06-08 04:13:57 +02:00
parent 216c08c623
commit 13f23d147a
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -20,6 +20,7 @@ impl Query {
.group_by(model::activity::Column::Internal) .group_by(model::activity::Column::Internal)
.group_by(model::object::Column::Internal) .group_by(model::object::Column::Internal)
.group_by(model::like::Column::Internal) .group_by(model::like::Column::Internal)
.group_by(model::addressing::Column::Internal)
.order_by(model::addressing::Column::Published, Order::Desc) .order_by(model::addressing::Column::Published, Order::Desc)
.select_only(); .select_only();
@ -50,6 +51,7 @@ impl Query {
.join(sea_orm::JoinType::InnerJoin, model::addressing::Relation::Objects.def()) .join(sea_orm::JoinType::InnerJoin, model::addressing::Relation::Objects.def())
.group_by(model::object::Column::Internal) .group_by(model::object::Column::Internal)
.group_by(model::like::Column::Internal) .group_by(model::like::Column::Internal)
.group_by(model::addressing::Column::Internal)
.order_by(model::addressing::Column::Published, Order::Desc) .order_by(model::addressing::Column::Published, Order::Desc)
.select_only(); .select_only();