finished add community data in scene and automation

This commit is contained in:
faris Aljohari
2025-03-20 11:12:37 +03:00
parent 670c026cfd
commit d09bdd1f6e
3 changed files with 8 additions and 2 deletions
+2
View File
@@ -43,4 +43,6 @@ export interface SceneDetails {
actions: Action[];
spaceId: string;
spaceName: string;
communityName: string;
communityId: string;
}
+3 -1
View File
@@ -226,7 +226,7 @@ export class SceneService {
disabled: false,
...(showInHomePage ? { showInHomePage } : {}),
},
relations: ['sceneIcon', 'space'],
relations: ['sceneIcon', 'space', 'space.community'],
});
const safeFetch = async (scene: any) => {
@@ -494,6 +494,8 @@ export class SceneService {
actions,
spaceId: spaceUuid,
spaceName: scene.space.spaceName,
communityId: scene.space.community.uuid,
communityName: scene.space.community.name,
};
} catch (err) {
if (err instanceof BadRequestException) {