Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMimir committed Dec 9, 2023
1 parent 87c23a7 commit fb47848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/api/src/api/repository/infrastructure/repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl DbRepositoryContract for PgRepository {
) -> Result<Pagination<GithubIssue>> {
let mut query = issues::Entity::find()
.filter(issues::Column::Repository.eq(repository_id))
.inner_join(issue_labels::Entity)
.left_join(issue_labels::Entity)
.select_only()
.columns([
issues::Column::Id,
Expand All @@ -48,7 +48,7 @@ impl DbRepositoryContract for PgRepository {
issues::Column::Closed,
])
.column_as(
Expr::cust_with_expr("array_agg($1)", issue_labels::Column::Name.into_expr()),
Expr::cust_with_expr("array_remove(array_agg($1), null)", issue_labels::Column::Name.into_expr()),
"labels",
)
.group_by(issues::Column::Id);
Expand Down

0 comments on commit fb47848

Please sign in to comment.