mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-24 14:47:54 +00:00
removed guards
This commit is contained in:
@@ -19,6 +19,7 @@ export class GroupController {
|
||||
async getGroupsBySpaceUuid(@Param('spaceUuid') spaceUuid: string) {
|
||||
return await this.groupService.getGroupsByUnitUuid(spaceUuid);
|
||||
}
|
||||
|
||||
@ApiBearerAuth()
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@Get(':unitUuid/devices/:groupName')
|
||||
|
||||
@@ -31,9 +31,7 @@ export class GroupService {
|
||||
try {
|
||||
const spaces = await this.spaceRepository.find({
|
||||
where: {
|
||||
parent: {
|
||||
uuid: unitUuid,
|
||||
},
|
||||
uuid: unitUuid,
|
||||
},
|
||||
relations: ['devices', 'devices.productDevice'],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user