From aad24f3c2a3f4ec2670c6b4339ee1369b7f6a624 Mon Sep 17 00:00:00 2001 From: "Gustavo W. Teixeira" Date: Thu, 7 Mar 2024 15:20:47 -0300 Subject: [PATCH] Do not remove email from properties lets keep email in properties --- src/cdk/v2/destinations/koala/procWorkflow.yaml | 2 +- test/integrations/destinations/koala/processor/data.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cdk/v2/destinations/koala/procWorkflow.yaml b/src/cdk/v2/destinations/koala/procWorkflow.yaml index 3425ab7c8f..9ec0202b13 100644 --- a/src/cdk/v2/destinations/koala/procWorkflow.yaml +++ b/src/cdk/v2/destinations/koala/procWorkflow.yaml @@ -38,7 +38,7 @@ steps: condition: $.context.messageType === {{$.EventType.TRACK}} template: | const properties = .message.properties ?? {}; - const koProperties = properties{~['ko_profile_id', 'email']} + const koProperties = properties{~['ko_profile_id']} const basePayload = { ip: .message.context.ip ?? .message.request_ip, email: $.context.email, diff --git a/test/integrations/destinations/koala/processor/data.ts b/test/integrations/destinations/koala/processor/data.ts index ce29ba658d..9c1ea97a77 100644 --- a/test/integrations/destinations/koala/processor/data.ts +++ b/test/integrations/destinations/koala/processor/data.ts @@ -64,6 +64,7 @@ export const data = [ sent_at: '2024-01-23T08:35:17.562Z', message_id: '84e26acc-56a5-4835-8233-591137fca468', properties: { + email: 'johndoe@somemail.com', label: 'test', value: 10, },