From 910482d89eba2b1d0149be1ece44877254bf4c96 Mon Sep 17 00:00:00 2001 From: Gianfranco Paoloni Date: Mon, 25 Nov 2024 14:21:01 -0300 Subject: [PATCH] chore: PR feedback --- functions/sendMessageAndRunJanitor.protected.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/sendMessageAndRunJanitor.protected.ts b/functions/sendMessageAndRunJanitor.protected.ts index a14628ff..432970b2 100644 --- a/functions/sendMessageAndRunJanitor.protected.ts +++ b/functions/sendMessageAndRunJanitor.protected.ts @@ -54,8 +54,7 @@ export const handler = async ( if (conversationSid) { const conversationWebhooks = await context .getTwilioClient() - .conversations.services(context.CHAT_SERVICE_SID) - .conversations(conversationSid) + .conversations.v1.conversations(conversationSid) .webhooks.list(); // Remove the studio trigger webhooks to prevent this channel to trigger subsequent Studio flows executions