chore: fetch ticket that only assing to a admin and only super admin can see all ticket

This commit is contained in:
mahyargdz
2025-03-03 12:01:13 +03:30
parent c302ab1c77
commit 1f08514deb
3 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -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" })