diff --git a/packages/destination-actions/src/destinations/taguchi/syncUserProfile/__tests__/__snapshots__/snapshot.test.ts.snap b/packages/destination-actions/src/destinations/taguchi/syncUserProfile/__tests__/__snapshots__/snapshot.test.ts.snap index 4d92b0e207..7c6547b0ca 100644 --- a/packages/destination-actions/src/destinations/taguchi/syncUserProfile/__tests__/__snapshots__/snapshot.test.ts.snap +++ b/packages/destination-actions/src/destinations/taguchi/syncUserProfile/__tests__/__snapshots__/snapshot.test.ts.snap @@ -8,9 +8,6 @@ Array [ "address2": "Testville", "address3": "TS", "country": "Test Country", - "custom": Object { - "phone": "+1234567890", - }, "dob": "2024-06-10", "email": "test@example.com", "firstname": "Test", @@ -27,6 +24,7 @@ Array [ }, ], "organizationId": 123, + "phone": "+1234567890", "postcode": "12345", "ref": "test-user-123", "state": "Test State", diff --git a/packages/destination-actions/src/destinations/taguchi/syncUserProfile/types.ts b/packages/destination-actions/src/destinations/taguchi/syncUserProfile/types.ts index ae337c452e..ce55cef59a 100644 --- a/packages/destination-actions/src/destinations/taguchi/syncUserProfile/types.ts +++ b/packages/destination-actions/src/destinations/taguchi/syncUserProfile/types.ts @@ -19,6 +19,7 @@ export interface JSONItem { state?: string country?: string postcode?: string + phone?: string gender?: string // Custom traits. Including Computed Traits. diff --git a/packages/destination-actions/src/destinations/taguchi/syncUserProfile/utils.ts b/packages/destination-actions/src/destinations/taguchi/syncUserProfile/utils.ts index cd550fb636..435cbbdbb8 100644 --- a/packages/destination-actions/src/destinations/taguchi/syncUserProfile/utils.ts +++ b/packages/destination-actions/src/destinations/taguchi/syncUserProfile/utils.ts @@ -14,9 +14,9 @@ export function validate(payloads: Payload[]): Payload[] { } export async function send(request: RequestClient, payloads: Payload[], settings: Settings, isBatch: boolean) { - // if(!isBatch){ + if(!isBatch){ validate(payloads) - // } + } const json: TaguchiJSON = payloads.map((payload) => buildJSON(payload, settings.organizationId)) @@ -68,6 +68,7 @@ function buildJSON(payload: Payload, organizationId: string): JSONItem { state, country, postcode, + phone, gender, ...customTraits } = {} @@ -90,6 +91,7 @@ function buildJSON(payload: Payload, organizationId: string): JSONItem { ...(state && { state }), ...(country && { country }), ...(postcode && { postcode }), + ...(phone && { phone }), ...(gender && { gender }), // Add custom traits ...buildCustom(customTraits),