Skip to content

Commit

Permalink
Hotfix checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandiny committed Feb 27, 2021
1 parent 9d89cef commit 99a40a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/CheckoutController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export class CheckoutController {
}

async createCheckout(request: Request, response: Response): Promise<void> {
const { waContact, lineContact, address, items: orderItems } = request.body;
const id = response.locals.auth.id;
const { waContact = id, lineContact, address, items: orderItems } = request.body;

if (orderItems.length === 0) {
return responseGenerator(response, 400, "no-item-selected");
Expand Down

0 comments on commit 99a40a5

Please sign in to comment.