Include space relation in findScene method

This commit is contained in:
faris Aljohari
2024-11-25 01:10:32 -06:00
parent c90b07fab4
commit a37af93696

View File

@ -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) {