From 831150e0404bca591a16f28680ea5d004dad5d30 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Thu, 3 Mar 2022 08:04:40 +0100 Subject: [PATCH] =?UTF-8?q?fix(viewer):=20=F0=9F=90=9B=20Fix=20subscribe?= =?UTF-8?q?=20webhook=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../blocks/[blockId]/steps/[stepId]/subscribeWebhook.ts | 2 +- apps/viewer/sentry.client.config.js | 1 + apps/viewer/sentry.server.config.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/viewer/pages/api/typebots/[typebotId]/blocks/[blockId]/steps/[stepId]/subscribeWebhook.ts b/apps/viewer/pages/api/typebots/[typebotId]/blocks/[blockId]/steps/[stepId]/subscribeWebhook.ts index 5ef4b7640f..9a96184f63 100644 --- a/apps/viewer/pages/api/typebots/[typebotId]/blocks/[blockId]/steps/[stepId]/subscribeWebhook.ts +++ b/apps/viewer/pages/api/typebots/[typebotId]/blocks/[blockId]/steps/[stepId]/subscribeWebhook.ts @@ -26,7 +26,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => { ?.steps.find(byId(stepId)) as WebhookStep await prisma.webhook.update({ where: { id: webhookId }, - data: { url, body: '{{state}}' }, + data: { url, body: '{{state}}', method: 'POST' }, }) return res.send({ message: 'success' }) diff --git a/apps/viewer/sentry.client.config.js b/apps/viewer/sentry.client.config.js index 15a2da11ae..d14ed470b5 100644 --- a/apps/viewer/sentry.client.config.js +++ b/apps/viewer/sentry.client.config.js @@ -10,5 +10,6 @@ Sentry.init({ 'ResizeObserver loop limit exceeded', 'ResizeObserver loop completed with undelivered notifications.', 'ResizeObserver is not defined', + "Can't find variable: ResizeObserver", ], }) diff --git a/apps/viewer/sentry.server.config.js b/apps/viewer/sentry.server.config.js index bdbfc8cc54..2df9a74ef3 100644 --- a/apps/viewer/sentry.server.config.js +++ b/apps/viewer/sentry.server.config.js @@ -10,5 +10,6 @@ Sentry.init({ 'ResizeObserver loop limit exceeded', 'ResizeObserver loop completed with undelivered notifications.', 'ResizeObserver is not defined', + "Can't find variable: ResizeObserver", ], })