mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-27 20:04:55 +00:00
Include space relation in findScene method
This commit is contained in:
@ -481,7 +481,7 @@ export class SceneService {
|
|||||||
async findScene(sceneUuid: string): Promise<SceneEntity> {
|
async findScene(sceneUuid: string): Promise<SceneEntity> {
|
||||||
const scene = await this.sceneRepository.findOne({
|
const scene = await this.sceneRepository.findOne({
|
||||||
where: { uuid: sceneUuid },
|
where: { uuid: sceneUuid },
|
||||||
relations: ['sceneIcon'],
|
relations: ['sceneIcon', 'space'],
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!scene) {
|
if (!scene) {
|
||||||
|
|||||||
Reference in New Issue
Block a user