Add debugging details (#2582)
This commit is contained in:
parent
8e0c7759be
commit
2c4a891a89
2 changed files with 3 additions and 2 deletions
|
@ -32,7 +32,9 @@ async function handlePaymentSuccess(event: Stripe.Event) {
|
||||||
bookingId: true,
|
bookingId: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
if (!payment?.bookingId) {
|
||||||
|
console.log(JSON.stringify(payment));
|
||||||
|
}
|
||||||
if (!payment?.bookingId) throw new Error("Payment not found");
|
if (!payment?.bookingId) throw new Error("Payment not found");
|
||||||
|
|
||||||
const booking = await prisma.booking.findUnique({
|
const booking = await prisma.booking.findUnique({
|
||||||
|
|
|
@ -26,7 +26,6 @@ module.exports = {
|
||||||
"sr",
|
"sr",
|
||||||
"sv",
|
"sv",
|
||||||
"vi",
|
"vi",
|
||||||
"hu",
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
localePath: path.resolve("./public/static/locales"),
|
localePath: path.resolve("./public/static/locales"),
|
||||||
|
|
Loading…
Reference in a new issue