update prepare time
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-07-01 14:05:39 +03:30
parent bd084e2e63
commit 18f200df9f
6 changed files with 96 additions and 0 deletions
@@ -12,6 +12,7 @@ import { UpdateOrderStatusDto } from '../dto/update-order-status.dto';
import { Permissions } from 'src/common/decorators/permissions.decorator';
import { Permission } from 'src/common/enums/permission.enum';
import { AdminCreateOrderDto } from '../dto/admin-create-order.dto';
import { AdminUpdateOrderFeesDto } from '../dto/admin-update-order-fees.dto';
import { FoodOrderReportDto } from '../dto/food-order-report.dto';
import { DailyOrderReportDto } from '../dto/daily-order-report.dto';
@@ -113,6 +114,20 @@ export class OrdersController {
return this.ordersService.changeOrderStatus(orderId, restId, status, 'admin', dto?.desc);
}
@UseGuards(AdminAuthGuard)
@Permissions(Permission.MANAGE_ORDERS)
@Patch('admin/orders/:orderId/fees')
@ApiOperation({ summary: 'Update order delivery fee, packing fee, and preparation time' })
@ApiParam({ name: 'orderId', description: 'Order ID' })
@ApiBody({ type: AdminUpdateOrderFeesDto })
updateOrderFees(
@Param('orderId') orderId: string,
@Body() dto: AdminUpdateOrderFeesDto,
@RestId() restId: string,
) {
return this.ordersService.updateOrderFees(orderId, restId, dto);
}
@UseGuards(AdminAuthGuard)
@Permissions(Permission.VIEW_REPORTS)
@ApiOperation({ summary: 'Get Stats for report page' })