mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-27 12:44:55 +00:00
added sceneIcon
This commit is contained in:
@ -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}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user