From 2c4a891a89c6866c84eed147a1d52c6a0efbe371 Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Sun, 24 Apr 2022 00:15:46 +0530 Subject: [PATCH] Add debugging details (#2582) --- apps/web/ee/pages/api/integrations/stripepayment/webhook.ts | 4 +++- apps/web/next-i18next.config.js | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts b/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts index 579c3ed36e..3bb8febe54 100644 --- a/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts +++ b/apps/web/ee/pages/api/integrations/stripepayment/webhook.ts @@ -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({ diff --git a/apps/web/next-i18next.config.js b/apps/web/next-i18next.config.js index 13d4653908..336d25a896 100644 --- a/apps/web/next-i18next.config.js +++ b/apps/web/next-i18next.config.js @@ -26,7 +26,6 @@ module.exports = { "sr", "sv", "vi", - "hu", ], }, localePath: path.resolve("./public/static/locales"),