diff --git a/src/v1/destinations/iterable/networkHandler.js b/src/v1/destinations/iterable/networkHandler.js index 6a129c7802..bbc30a4fd2 100644 --- a/src/v1/destinations/iterable/networkHandler.js +++ b/src/v1/destinations/iterable/networkHandler.js @@ -1,15 +1,12 @@ const { prepareProxyRequest, proxyRequest } = require('../../../adapters/network'); const { processAxiosResponse } = require('../../../adapters/utils/networkUtils'); const { BULK_ENDPOINTS } = require('../../../v0/destinations/iterable/config'); -const { - checkIfEventIsAbortableAndExtractErrorMessage, -} = require('../../../v0/destinations/iterable/util'); const { CommonStrategy } = require('./commonStrategy'); const { TrackIdentifyStrategy } = require('./trackIdentifyStrategy'); const getResponseStrategy = (endpoint) => { if (BULK_ENDPOINTS.some((path) => endpoint.includes(path))) { - return new TrackIdentifyStrategy(checkIfEventIsAbortableAndExtractErrorMessage); + return new TrackIdentifyStrategy(); } return new CommonStrategy(); }; diff --git a/src/v1/destinations/iterable/trackIdentifyStrategy.js b/src/v1/destinations/iterable/trackIdentifyStrategy.js index b2ba1f8f92..aabe0845ff 100644 --- a/src/v1/destinations/iterable/trackIdentifyStrategy.js +++ b/src/v1/destinations/iterable/trackIdentifyStrategy.js @@ -1,9 +1,12 @@ const { ResponseStrategy } = require('./responseStrategy'); +const { + checkIfEventIsAbortableAndExtractErrorMessage, +} = require('../../../v0/destinations/iterable/util'); class TrackIdentifyStrategy extends ResponseStrategy { - constructor(filterFn) { + constructor() { super(); - this.filterFn = filterFn; + this.filterFn = checkIfEventIsAbortableAndExtractErrorMessage; } handleSuccess(responseParams) {