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)); } };