Skip to content

Commit

Permalink
fix: small change
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Jan 22, 2024
1 parent 3741073 commit a5ff949
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/v0/destinations/marketo_bulk_upload/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ const getAccessTokenURL = (config) => {

// Fetch access token from client id and client secret
// DOC: https://developers.marketo.com/rest-api/authentication/
const getAccessToken = async (config) =>
authCache.get(getAccessTokenCacheKey(config), async () => {
const getAccessToken = async (config) => {
const accessToken = await authCache.get(getAccessTokenCacheKey(config), async () => {
const url = getAccessTokenURL(config);
const { processedResponse: accessTokenResponse } = await handleHttpRequest('get', url, {
destType: 'marketo_bulk_upload',
Expand Down Expand Up @@ -190,6 +190,8 @@ const getAccessToken = async (config) =>
400,
);
});
return accessToken;
};

/**
* Handles the response of a polling operation.
Expand Down

0 comments on commit a5ff949

Please sign in to comment.