fix: bug in the customer and tikcet for admin panel
This commit is contained in:
@@ -9,6 +9,7 @@ import { CreateLegalUserDto } from "./DTO/create-legal-user.dto";
|
||||
import { CreateRealUserDto } from "./DTO/create-real-user.dto";
|
||||
import { CreateRoleDto } from "./DTO/create-role.dto";
|
||||
import { SearchAdminQueryDto } from "./DTO/search-admins-query.dto";
|
||||
import { SearchCustomersDto } from "./DTO/search-customers.dto";
|
||||
import { SearchRolesQueryDto } from "./DTO/search-roles.dto";
|
||||
import { UpdateProfileDto } from "./DTO/update-profile.dto";
|
||||
import { CreateUserGroupDto } from "./DTO/user-group.dto";
|
||||
@@ -117,13 +118,13 @@ export class UsersController {
|
||||
return this.usersService.findAllUsers();
|
||||
}
|
||||
|
||||
// @ApiOperation({ summary: "get all customers ==> admin route" })
|
||||
// @AuthGuards()
|
||||
// @PermissionsDec(PermissionEnum.ADMINS, PermissionEnum.CUSTOMERS)
|
||||
// @Get("customers")
|
||||
// customers(@Query() queryDto: SearchCustomersDto) {
|
||||
// return this.usersService.findAllCustomers(queryDto);
|
||||
// }
|
||||
@ApiOperation({ summary: "get all customers ==> admin route" })
|
||||
@AuthGuards()
|
||||
@PermissionsDec(PermissionEnum.ADMINS, PermissionEnum.CUSTOMERS)
|
||||
@Get("customers")
|
||||
getCustomers(@Query() queryDto: SearchCustomersDto) {
|
||||
return this.usersService.getCustomers(queryDto);
|
||||
}
|
||||
|
||||
@ApiOperation({ summary: "get all customers ==> admin route" })
|
||||
@AuthGuards()
|
||||
|
||||
Reference in New Issue
Block a user