Skip to content

Commit

Permalink
fix: update access token key for garl destination
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai Sankeerth committed Jul 1, 2024
1 parent c8cf2ab commit 641095e
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const processRecordEventArray = (

async function processRecordInputs(groupedRecordInputs) {
const { destination, message, metadata } = groupedRecordInputs[0];
const accessToken = getAccessToken(metadata, 'accessToken');
const accessToken = getAccessToken(metadata, 'access_token');
const developerToken = getValueFromMessage(metadata, 'secret.developer_token');

const groupedRecordsByAction = lodash.groupBy(groupedRecordInputs, (record) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const processEvent = async (metadata, message, destination) => {
);
}

const accessToken = getAccessToken(metadata, 'accessToken');
const accessToken = getAccessToken(metadata, 'access_token');
const developerToken = getValueFromMessage(metadata, 'secret.developer_token');

Object.values(createdPayload).forEach((data) => {
Expand Down
Loading

0 comments on commit 641095e

Please sign in to comment.