chore: fetch ticket that only assing to a admin and only super admin can see all ticket
This commit is contained in:
@@ -86,8 +86,8 @@ export class TicketsController {
|
||||
@PermissionsDec(PermissionEnum.TICKETS)
|
||||
@Pagination()
|
||||
@Get("admin")
|
||||
getAllTickets(@Query() queryDto: SearchTicketQueryDto) {
|
||||
return this.ticketsService.getTicketForAdmin(queryDto);
|
||||
getAllTickets(@Query() queryDto: SearchTicketQueryDto, @UserDec("id") adminId: string) {
|
||||
return this.ticketsService.getTicketForAdmin(queryDto, adminId);
|
||||
}
|
||||
|
||||
@ApiOperation({ summary: "create ticket messages" })
|
||||
|
||||
Reference in New Issue
Block a user