add disabled check

This commit is contained in:
faris Aljohari
2025-01-22 05:33:50 -06:00
parent f555dc1708
commit d45fe6cb0e

View File

@ -218,6 +218,7 @@ export class SceneService {
const scenesData = await this.sceneRepository.find({ const scenesData = await this.sceneRepository.find({
where: { where: {
space: { uuid: spaceUuid }, space: { uuid: spaceUuid },
disabled: false,
...(showInHomePage ? { showInHomePage } : {}), ...(showInHomePage ? { showInHomePage } : {}),
}, },
relations: ['sceneIcon', 'space'], relations: ['sceneIcon', 'space'],