From f58ba51730281fd26b6f4dfccc55e409a7d9b2f9 Mon Sep 17 00:00:00 2001 From: Stephen Hand Date: Fri, 27 Sep 2024 12:53:08 +0100 Subject: [PATCH] Resolve service conversation listener on success --- functions/webhooks/serviceConversationListener.protected.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/webhooks/serviceConversationListener.protected.ts b/functions/webhooks/serviceConversationListener.protected.ts index c367049a..27c3206a 100644 --- a/functions/webhooks/serviceConversationListener.protected.ts +++ b/functions/webhooks/serviceConversationListener.protected.ts @@ -15,7 +15,7 @@ */ import { Context, ServerlessCallback } from '@twilio-labs/serverless-runtime-types/types'; -import { responseWithCors, bindResolve, error500 } from '@tech-matters/serverless-helpers'; +import { responseWithCors, bindResolve, error500, success } from '@tech-matters/serverless-helpers'; import { Event, SendErrorMessageForUnsupportedMedia, @@ -38,5 +38,6 @@ export const handler = async (context: Context, event: Event, callback: Serverle if (err instanceof Error) resolve(error500(err)); else resolve(error500(new Error(String(err)))); } + resolve(success(event)); } };