Merge pull request #50 from SyncrowIOT/fixed-error-handling-secene

refactor error message
This commit is contained in:
faris Aljohari
2024-06-24 16:44:24 +03:00
committed by GitHub

View File

@ -113,7 +113,7 @@ export class SceneService {
relations: ['spaceType'],
});
if (!unit || !unit.spaceType || unit.spaceType.type !== 'unit') {
throw new BadRequestException('Invalid building UUID');
throw new BadRequestException('Invalid unit UUID');
}
return {
uuid: unit.uuid,