added sceneIcon

This commit is contained in:
hannathkadher
2024-11-05 15:51:14 +04:00
parent a39c28eeda
commit 7e07d2216b

View File

@ -174,6 +174,7 @@ export class SceneService {
spaceUuid,
...(showInHomePage ? { showInHomePage } : {}),
},
relations: ['sceneIcon'],
});
if (!scenesData.length) {
@ -469,6 +470,8 @@ export class SceneService {
relations: ['sceneIcon'],
});
console.log(scene);
if (!scene) {
throw new HttpException(
`Invalid scene with id ${sceneUuid}`,