From 2a247f7c691d6cd269713a237ac5004f63e01984 Mon Sep 17 00:00:00 2001 From: Anant Jain Date: Fri, 28 Jun 2024 20:03:14 +0530 Subject: [PATCH] chore: small fixes+1 --- src/v0/destinations/diy/transform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v0/destinations/diy/transform.js b/src/v0/destinations/diy/transform.js index 1987783117..c521cd7c40 100644 --- a/src/v0/destinations/diy/transform.js +++ b/src/v0/destinations/diy/transform.js @@ -62,7 +62,7 @@ const trackResponseBuilder = (message, destination) => { const { endpoint, method, headers, queryParams, pathVariables, mappings, batchSize } = request; const headersObject = handleMappings(message, headers, 'value', 'key'); const params = handleMappings(message, queryParams, 'value', 'key'); - const pathVariablesObj = getHashFromArray(pathVariables, 'pathVariable', 'pathValue', false); + const pathVariablesObj = getHashFromArray(pathVariables, 'name', 'pathValue', false); const payload = handleMappings(message, mappings); payload.maxBatchSize = batchSize; const updatedEndpoint = endpoint.replace(/{(\w+)}/g, (_, key) => {