Skip to content

Commit

Permalink
fixing personas reference in createAudience (#2491)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-ayoub-segment authored Oct 8, 2024
1 parent 9dd18f6 commit 8f079fe
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import syncAudience from './syncAudience'
import { getCreateAudienceURL, hashAndEncodeToInt, getDataCenter, getSectionId } from './helpers'
import { v4 as uuidv4 } from '@lukeed/uuid'

type PersonasSettings = {
computation_id: string
computation_key: string
}

const destination: AudienceDestinationDefinition<Settings, AudienceSettings> = {
name: 'Dynamic Yield by Mastercard Audiences',
slug: 'actions-dynamic-yield-audiences',
Expand Down Expand Up @@ -87,13 +82,8 @@ const destination: AudienceDestinationDefinition<Settings, AudienceSettings> = {
async createAudience(request, createAudienceInput) {
const {
settings,
audienceSettings: { audience_name, personas } = {}
}: {
settings: Settings
audienceSettings?: {
audience_name?: string
personas?: PersonasSettings | undefined
}
audienceSettings: { audience_name } = {},
personas
} = createAudienceInput

if (!audience_name) {
Expand Down

0 comments on commit 8f079fe

Please sign in to comment.