This commit is contained in:
2025-12-02 16:58:44 +03:30
parent 58cf3c58b1
commit e43727f1c6
3 changed files with 24 additions and 27 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export class OrdersController {
@ApiResponse({ status: 400, description: 'Bad request - cart validation failed' })
@ApiResponse({ status: 404, description: 'Cart, user, restaurant, address, or payment method not found' })
create(@UserId() userId: string, @RestId() restaurantId: string) {
return this.ordersService.create(userId, restaurantId);
return this.ordersService.checkout(userId, restaurantId);
}
@Get('public/orders')