Remove unnecessary check for scenesData length

This commit is contained in:
faris Aljohari
2024-11-25 19:29:07 -06:00
parent 691b6546a1
commit 13983d61aa
-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