Compare commits

...

1 Commits

Author SHA1 Message Date
5a0b1a0084 remove deleted spaces from search results 2025-07-27 08:43:27 +03:00

View File

@ -193,7 +193,15 @@ export class CommunityService {
})
.distinct(true);
if (includeSpaces) {
matchingCommunityIdsQb.leftJoin('c.spaces', 'space');
matchingCommunityIdsQb.leftJoin(
'c.spaces',
'space',
'space.disabled = :disabled AND space.spaceName != :orphanSpaceName',
{
disabled: false,
orphanSpaceName: ORPHAN_SPACE_NAME,
},
);
}
if (search) {