Skip to content

Commit

Permalink
Segments missing activity types for the display service (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
epipav authored Sep 5, 2023
1 parent 6d35970 commit ecb00e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/src/database/repositories/segmentRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,12 @@ class SegmentRepository extends RepositoryBase<
}
})

// TODO: Add member count to segments after implementing member relations
return { count, rows, limit: criteria.limit, offset: criteria.offset }
return {
count,
rows: rows.map((sr) => SegmentRepository.populateRelations(sr)),
limit: criteria.limit,
offset: criteria.offset,
}
}

private async queryIntegrationsForSubprojects(subprojects) {
Expand Down

0 comments on commit ecb00e9

Please sign in to comment.