ticket refactor
This commit is contained in:
@@ -136,7 +136,8 @@ export class OrderController {
|
||||
@Post('admin/orders/:orderId/item/:itemId/designer')
|
||||
@UseGuards(AdminAuthGuard)
|
||||
@ApiOperation({ summary: 'Assign Order Designer ' })
|
||||
assignDesigner(@Param('orderId') orderId: string, @Param('itemId') itemId: string, @Body() body: AssignDesignerDto) {
|
||||
assignDesigner(@Param('orderId') orderId: string, @Param('itemId') itemId: string,
|
||||
@Body() body: AssignDesignerDto) {
|
||||
return this.orderService.assignDesigner(orderId, +itemId, body.designerId);
|
||||
}
|
||||
|
||||
@@ -173,11 +174,4 @@ export class OrderController {
|
||||
return this.orderService.updateOrderItemAsAdmin(orderId, +itemId, body);
|
||||
}
|
||||
|
||||
@Get('admin/prints')
|
||||
@UseGuards(AdminAuthGuard)
|
||||
@ApiOperation({ summary: 'Get all orders with pagination and filters' })
|
||||
findAllPrints(@Query() dto: FindOrdersDto) {
|
||||
return this.orderService.findOrdersAsAdmin(dto);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user