Merge pull request #159 from SyncrowIOT/fix-scene-when-empty-issue

Remove unnecessary check for scenesData length
This commit is contained in:
faris Aljohari
2024-11-26 00:12:58 -06:00
committed by GitHub
-7
View File
@@ -180,13 +180,6 @@ export class SceneService {
relations: ['sceneIcon', 'space'],
});
if (!scenesData.length) {
throw new HttpException(
`No scenes found for space UUID ${spaceUuid} with showInHomePage ${showInHomePage} `,
HttpStatus.NOT_FOUND,
);
}
const scenes = await Promise.all(
scenesData.map(async (scene) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars