Skip to content

Commit

Permalink
chore: code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mihir-4116 committed Feb 2, 2024
1 parent 02d4f80 commit de350d0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/v0/destinations/hs/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,10 +506,16 @@ const extractIDsForSearchAPI = (inputs) => {
* @param {*} destination
* @returns
*/
const performHubSpotSearch = async (rqdata, rqOptions, objectType, identifierType, destination) => {
const performHubSpotSearch = async (
reqdata,
reqOptions,
objectType,
identifierType,
destination,
) => {
let checkAfter = 1;
const searchResults = [];
const requestData = rqdata;
const requestData = reqdata;
const { Config } = destination;

const endpoint = IDENTIFY_CRM_SEARCH_ALL_OBJECTS.replace(':objectType', objectType);
Expand All @@ -520,7 +526,7 @@ const performHubSpotSearch = async (rqdata, rqOptions, objectType, identifierTyp
? endpoint
: `${endpoint}?hapikey=${Config.apiKey}`;

const requestOptions = Config.authorizationType === 'newPrivateAppApi' ? rqOptions : {};
const requestOptions = Config.authorizationType === 'newPrivateAppApi' ? reqOptions : {};

/* *
* This is needed for processing paginated response when searching hubspot.
Expand Down

0 comments on commit de350d0

Please sign in to comment.