modify create order
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-06-23 10:30:29 +03:30
parent 556c35d1df
commit 9bbab2f400
3 changed files with 41 additions and 65 deletions
@@ -70,10 +70,10 @@ export class OrdersController {
@UseGuards(AdminAuthGuard)
@Permissions(Permission.MANAGE_ORDERS)
@Post('admin/orders')
@ApiOperation({ summary: 'Create an order for a user (by phone) from admin side' })
@ApiOperation({ summary: 'Create an order for a user from admin side' })
@ApiBody({ type: AdminCreateOrderDto })
createOrderForUser(@RestId() restId: string, @Body() dto: AdminCreateOrderDto) {
return this.ordersService.createOrderForUserByPhone(restId, dto);
return this.ordersService.createOrderForUser(restId, dto);
}
@UseGuards(AdminAuthGuard)