Skip to content

Commit ecb00e9

Browse files
authored
Segments missing activity types for the display service (#1422)
1 parent 6d35970 commit ecb00e9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

backend/src/database/repositories/segmentRepository.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,8 +671,12 @@ class SegmentRepository extends RepositoryBase<
671671
}
672672
})
673673

674-
// TODO: Add member count to segments after implementing member relations
675-
return { count, rows, limit: criteria.limit, offset: criteria.offset }
674+
return {
675+
count,
676+
rows: rows.map((sr) => SegmentRepository.populateRelations(sr)),
677+
limit: criteria.limit,
678+
offset: criteria.offset,
679+
}
676680
}
677681

678682
private async queryIntegrationsForSubprojects(subprojects) {

0 commit comments

Comments
 (0)