Skip to content

Commit

Permalink
fix: comments addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
AASHISH MALIK committed Nov 13, 2024
1 parent db5669b commit ec1751c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,9 @@ const responseBuilder = async (metadata, message, { Config }, payload) => {
let { customerId, loginCustomerId } = Config;
const { configData } = Config;

let configDetails = {};
if (isDefinedAndNotNull(configData)) {
configDetails = JSON.parse(configData);
const configDetails = isDefinedAndNotNull(configData) ? JSON.parse(configData) : {};
if (configDetails.customerId) {
customerId = configDetails.customerId;
if (isDefined(configDetails.loginCustomerId)) {
loginCustomerId = configDetails.loginCustomerId;
}
}

if (isNumber(customerId)) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { API_VERSION } from '../../../../../src/v0/destinations/google_adwords_enhanced_conversions/config';

const events = [
{
metadata: {
Expand Down Expand Up @@ -429,6 +427,7 @@ const events = [
configData: '{"customerId":"1234567890", "loginCustomerId":"65656565"}',
customerId: '1234567890',
subAccount: true,
loginCustomerId: '65656565',
listOfConversions: [{ conversions: 'Page View' }, { conversions: 'Product Added' }],
authStatus: 'active',
},
Expand Down Expand Up @@ -1080,6 +1079,7 @@ export const data = [
authStatus: 'active',
configData: '{"customerId":"1234567890", "loginCustomerId":"65656565"}',
customerId: '1234567890',
loginCustomerId: '65656565',
listOfConversions: [
{
conversions: 'Page View',
Expand Down

0 comments on commit ec1751c

Please sign in to comment.