This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user