Compare commits

...

1 Commits

Author SHA1 Message Date
9176fe779e task: add orderBy clause to communities 2025-06-19 11:10:57 +03:00

View File

@ -111,6 +111,7 @@ export class CommunityService {
.leftJoin('c.spaces', 's', 's.disabled = false')
.where('c.project = :projectUuid', { projectUuid })
.andWhere(`c.name != '${ORPHAN_COMMUNITY_NAME}-${project.name}'`)
.orderBy('c.createdAt', 'DESC')
.distinct(true);
if (pageable.search) {
qb.andWhere(