From d6a15a501e09853587de71d85fcc6ba79ca3052e Mon Sep 17 00:00:00 2001 From: ItsSudip Date: Tue, 25 Jun 2024 16:55:47 +0530 Subject: [PATCH] chore: use httpresponse in spite of processedResponse for trengo --- src/v0/destinations/trengo/transform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v0/destinations/trengo/transform.js b/src/v0/destinations/trengo/transform.js index 89514a6410..a1232e9ce2 100644 --- a/src/v0/destinations/trengo/transform.js +++ b/src/v0/destinations/trengo/transform.js @@ -101,7 +101,7 @@ const lookupContact = async (term, destination, metadata) => { if (!httpResponse.success) { const status = processedResponse?.status || 400; throw new NetworkError( - `Inside lookupContact, failed to make request: ${processedResponse.response?.statusText}`, + `Inside lookupContact, failed to make request: ${httpResponse.response?.response?.statusText}`, status, {