refactor error message

This commit is contained in:
faris Aljohari
2024-06-24 16:43:54 +03:00
parent a39a98df9c
commit c5e24daaa5

View File

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