mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 10:25:23 +00:00
Merge pull request #50 from SyncrowIOT/fixed-error-handling-secene
refactor error message
This commit is contained in:
@ -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,
|
||||||
|
Reference in New Issue
Block a user