Skip to content

Commit

Permalink
[Sendgrid Lists] - minor bug fixes (segmentio#2652)
Browse files Browse the repository at this point in the history
* bug fix for dynamic field

* removing some default types
  • Loading branch information
joe-ayoub-segment authored Dec 17, 2024
1 parent 4910fb0 commit 3ea984b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function dynamicCustomFields(request: RequestClient, payload: Paylo
choices: remainingFields.map(
field => ({
label: field.name,
value: `${field.name}:${field.field_type}`
value: field.name
})
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,12 @@ export const fields: Record<string, InputField> = {
}
},
default: {
anonymous_id: { '@path': '$.anonymousId' },
external_id: { '@path': '$.userId' },
email: {
'@if': {
exists: { '@path': '$.traits.email' },
then: { '@path': '$.traits.email' },
else: { '@path': '$.properties.email' }
}
},
phone_number_id: {
'@if': {
exists: { '@path': '$.traits.phone_number_id' },
then: { '@path': '$.traits.phone_number_id' },
else: { '@path': '$.properties.phone_number_id' }
}
}
}
},
Expand Down

0 comments on commit 3ea984b

Please sign in to comment.