order update refactor
This commit is contained in:
@@ -111,11 +111,18 @@ export class OrderController {
|
||||
}
|
||||
|
||||
|
||||
// @Patch('admin/orders/:orderId')
|
||||
// @UseGuards(AdminAuthGuard)
|
||||
// @ApiOperation({ summary: 'Update Order ' })
|
||||
// updateOrder(@Param('orderId') orderId: string, @Body() dto: UpdateOrderAsAdminDto) {
|
||||
// return this.orderService.updateOrderAsAdmin(orderId, dto);
|
||||
// }
|
||||
|
||||
@Patch('admin/orders/:orderId')
|
||||
@UseGuards(AdminAuthGuard)
|
||||
@ApiOperation({ summary: 'Update Order ' })
|
||||
updateOrder(@Param('orderId') orderId: string, @Body() dto: UpdateOrderAsAdminDto) {
|
||||
return this.orderService.updateOrderAsAdmin(orderId, dto);
|
||||
return this.orderService.updateOrderAsAdmin2(orderId, dto);
|
||||
}
|
||||
|
||||
@Patch('admin/orders/:id/item/:itemId/print')
|
||||
|
||||
Reference in New Issue
Block a user