fixed automation dto

This commit is contained in:
hannathkadher
2024-11-04 19:43:49 +04:00
parent a133f78bb3
commit 8cbe910f4c
4 changed files with 12 additions and 22 deletions
+3 -3
View File
@@ -157,7 +157,7 @@ export class SceneService {
);
} else {
throw new HttpException(
'An Internal error has been occured',
`An Internal error has been occured ${err}`,
HttpStatus.INTERNAL_SERVER_ERROR,
);
}
@@ -178,7 +178,7 @@ export class SceneService {
if (!scenesData.length) {
throw new HttpException(
`No scenes found for space UUID ${spaceUuid}`,
`No scenes found for space UUID ${spaceUuid} with showInHomePage ${showInHomePage} `,
HttpStatus.NOT_FOUND,
);
}
@@ -199,7 +199,7 @@ export class SceneService {
err.message,
);
if (err instanceof BadRequestException) {
if (err instanceof HttpException) {
throw err;
} else {
throw new HttpException(