mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 21:44: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> {
|
||||
const scene = await this.sceneRepository.findOne({
|
||||
where: { uuid: sceneUuid },
|
||||
relations: ['sceneIcon'],
|
||||
relations: ['sceneIcon', 'space'],
|
||||
});
|
||||
|
||||
if (!scene) {
|
||||
|
||||
Reference in New Issue
Block a user