File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/destination-actions/src/destinations/ortto-audiences Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -47,15 +47,16 @@ const destination: AudienceDestinationDefinition<Settings, AudienceSettings> = {
47
47
type : 'synced' ,
48
48
full_audience_sync : false
49
49
} ,
50
- createAudience : async ( request , { settings, audienceName } ) => {
50
+ async createAudience ( request , createAudienceInput ) {
51
+ const { settings, audienceName } = createAudienceInput
51
52
const client : OrttoClient = new OrttoClient ( request )
52
53
const audience = await client . createAudience ( settings , audienceName )
53
54
return {
54
55
// Segment will save this externalId for subsequent calls
55
56
externalId : audience . id
56
57
}
57
58
} ,
58
- getAudience : async ( request , { settings, externalId } ) => {
59
+ async getAudience ( request , { settings, externalId } ) {
59
60
const client : OrttoClient = new OrttoClient ( request )
60
61
const audience = await client . getAudience ( settings , externalId )
61
62
return {
You can’t perform that action at this time.
0 commit comments