Skip to content

Commit

Permalink
fixing broken field for optimizely data platform
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-ayoub-segment committed Mar 6, 2024
1 parent f5e6e4f commit 1c3e2b4
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Object {
"action": "p$KWIG5p0vR(@gNw)lv@",
"order_id": "p$KWIG5p0vR(@gNw)lv@",
"timestamp": "p$KWIG5p0vR(@gNw)lv@",
"type": "p$KWIG5p0vR(@gNw)lv@",
"type": "custom",
"user_identifiers": Object {},
}
`;
Expand Down Expand Up @@ -83,7 +83,7 @@ Object {
exports[`Testing snapshot for actions-optimizely-data-platform destination: nonEcommCustomEvent action - required fields 1`] = `
Object {
"timestamp": "3!#ax",
"type": "3!#ax",
"type": "custom",
"user_identifiers": Object {},
}
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Object {
"action": "FX3MHiX9P^tIkXKVCa",
"order_id": "FX3MHiX9P^tIkXKVCa",
"timestamp": "FX3MHiX9P^tIkXKVCa",
"type": "FX3MHiX9P^tIkXKVCa",
"type": "custom",
"user_identifiers": Object {},
}
`;

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const action: ActionDefinition<Settings, Payload> = {
const body = {
user_identifiers: payload.user_identifiers,
action: payload.event_action,
type: payload.event_type,
type: payload.event_type ?? 'custom',
timestamp: payload.timestamp,
order_id: payload.order_id,
total: payload.total,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { InputField, Directive } from '@segment/actions-core/destination-kit/typ

export const event_type: InputField = {
label: 'Optimizely Event Type',
description: 'The Optimizely Event Type.',
description: 'The Optimizely Event Type. Defaults to "custom" if not provided',
type: 'string',
required: false,
default: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Object {
"action": "FX3MHiX9P^tIkXKVCa",
"order_id": "FX3MHiX9P^tIkXKVCa",
"timestamp": "FX3MHiX9P^tIkXKVCa",
"type": "FX3MHiX9P^tIkXKVCa",
"type": "custom",
"user_identifiers": Object {},
}
`;

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const action: ActionDefinition<Settings, Payload> = {
const body = {
user_identifiers: payload.user_identifiers,
action: payload.event_action,
type: payload.event_type,
type: payload.event_type ?? 'custom',
timestamp: payload.timestamp,
data: payload.data
}
Expand Down

0 comments on commit 1c3e2b4

Please sign in to comment.