fix change status bug
This commit is contained in:
@@ -58,7 +58,7 @@ export class OrdersController {
|
||||
@Param('status') status: OrderStatus,
|
||||
@RestId() restId: string,
|
||||
) {
|
||||
return this.ordersService.changeOrderStatus(orderId, restId, status, 'user', dto.desc);
|
||||
return this.ordersService.changeOrderStatus(orderId, restId, status, 'user', dto?.desc);
|
||||
}
|
||||
|
||||
/******************** Admin Routes **********************/
|
||||
@@ -93,7 +93,7 @@ export class OrdersController {
|
||||
@Param('status') status: OrderStatus,
|
||||
@RestId() restId: string,
|
||||
) {
|
||||
return this.ordersService.changeOrderStatus(orderId, restId, status, 'admin', dto.desc);
|
||||
return this.ordersService.changeOrderStatus(orderId, restId, status, 'admin', dto?.desc);
|
||||
}
|
||||
|
||||
// @UseGuards(AdminAuthGuard)
|
||||
|
||||
Reference in New Issue
Block a user