Add debugging details (#2582)

This commit is contained in:
Hariom Balhara 2022-04-24 00:15:46 +05:30 committed by GitHub
parent 8e0c7759be
commit 2c4a891a89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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({

View file

@ -26,7 +26,6 @@ module.exports = {
"sr",
"sv",
"vi",
"hu",
],
},
localePath: path.resolve("./public/static/locales"),