mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-23 12:37:55 +00:00
Remove unnecessary check for scenesData length
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user