Skip to content

Commit

Permalink
Merge branch 'tarun/feature/stripe-express' of https://github.com/Uoa…
Browse files Browse the repository at this point in the history
…WDCC/auis-portal into tarun/feature/stripe-express
  • Loading branch information
Ratchet7x5 committed Oct 29, 2024
2 parents 907f357 + 1c065f1 commit 3fed833
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/controller/stripeController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const handleWebhook = asyncHandler(
completeTicketPurchase(session.id);
} else if (event.type === "checkout.session.expired") {
const session = event.data.object;

if (
session.metadata != null &&
session.metadata["eventId"] != undefined
Expand All @@ -119,8 +119,6 @@ export const handleWebhook = asyncHandler(
return;
}



res.json({ received: true });
}
);
Expand Down

0 comments on commit 3fed833

Please sign in to comment.