Skip to content

Commit

Permalink
chore: add logical changes for passing test-cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai Sankeerth committed Oct 7, 2024
1 parent 600815d commit 5178910
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/v0/destinations/salesforce/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ const collectAuthorizationInfo = async (event) => {
let authorizationData;
console.log(JSON.stringify(event));

Check warning on line 184 in src/v0/destinations/salesforce/utils.js

View workflow job for this annotation

GitHub Actions / Check for formatting & lint errors

Unexpected console statement

Check warning on line 184 in src/v0/destinations/salesforce/utils.js

View workflow job for this annotation

GitHub Actions / Code Coverage

Unexpected console statement
const { Name } = event.destination.DestinationDefinition;
if (Name === SALESFORCE_OAUTH || Name === SALESFORCE_OAUTH_SANDBOX) {
const lowerCaseName = Name?.toLowerCase?.();
if (isDefinedAndNotNull(event?.metadata?.secret) || lowerCaseName === SALESFORCE_OAUTH_SANDBOX) {
authorizationFlow = OAUTH;
authorizationData = getAccessTokenOauth(event.metadata);
} else {
Expand Down

0 comments on commit 5178910

Please sign in to comment.