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