Add debugging details (#2582)

This commit is contained in:
Hariom Balhara authored and GitHub committed 2022-04-23 18:45:46 +00:00
1 parent 8e0c7759be
commit 2c4a891a89
2 files changed
+3 -2

No files matched your search

@@ -32,7 +32,9 @@ async function handlePaymentSuccess(event: Stripe.Event) {
bookingId: true,
},
});
if (!payment?.bookingId) {
console.log(JSON.stringify(payment));
}
if (!payment?.bookingId) throw new Error("Payment not found");
const booking = await prisma.booking.findUnique({
-1
View File
@@ -26,7 +26,6 @@ module.exports = {
"sr",
"sv",
"vi",
"hu",
],
},
localePath: path.resolve("./public/static/locales"),