merged with space-product

This commit is contained in:
hannathkadher
2024-11-21 08:20:33 +04:00
parent 9fdee1540b
commit c0b8e0d779
2 changed files with 7 additions and 1 deletions

View File

@ -74,7 +74,12 @@ export class SpaceService {
// Get all spaces related to the community, including the parent-child relations
const spaces = await this.spaceRepository.find({
where: { community: { uuid: communityUuid } },
relations: ['parent', 'children', 'incomingConnections'], // Include parent and children relations
relations: [
'parent',
'children',
'incomingConnections',
'spaceProducts',
], // Include parent and children relations
});
// Organize spaces into a hierarchical structure