removed guards

This commit is contained in:
hannathkadher
2024-10-30 22:47:03 +04:00
parent 1f0cedfd09
commit b0ea7cdc25
5 changed files with 18 additions and 26 deletions
@@ -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')
+1 -3
View File
@@ -31,9 +31,7 @@ export class GroupService {
try {
const spaces = await this.spaceRepository.find({
where: {
parent: {
uuid: unitUuid,
},
uuid: unitUuid,
},
relations: ['devices', 'devices.productDevice'],
});