Skip to content

Commit

Permalink
chore: add properties type in klaviyo
Browse files Browse the repository at this point in the history
  • Loading branch information
yashasvibajpai committed Jun 10, 2024
1 parent f9b826c commit ea2bcd4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,6 @@ func (kbu *KlaviyoBulkUploader) Upload(asyncDestStruct *common.AsyncDestinationS
return kbu.generateKlaviyoErrorOutput("Error while parsing JSON.", err, importingJobIDs, destinationID)

Check warning on line 330 in router/batchrouter/asyncdestinationmanager/klaviyobulkupload/klaviyobulkupload.go

View check run for this annotation

Codecov / codecov/patch

router/batchrouter/asyncdestinationmanager/klaviyobulkupload/klaviyobulkupload.go#L322-L330

Added lines #L322 - L330 were not covered by tests
}
profileStructure := kbu.ExtractProfile(input)
if profileStructure == (Profile{}) {
return kbu.generateKlaviyoErrorOutput("Error while extracting profile. No profile data passed", err, importingJobIDs, destinationID)
}
combinedProfiles = append(combinedProfiles, profileStructure)

Check warning on line 333 in router/batchrouter/asyncdestinationmanager/klaviyobulkupload/klaviyobulkupload.go

View check run for this annotation

Codecov / codecov/patch

router/batchrouter/asyncdestinationmanager/klaviyobulkupload/klaviyobulkupload.go#L332-L333

Added lines #L332 - L333 were not covered by tests
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ type Profile struct {
Country string `json:"country,omitempty"`
IP string `json:"ip,omitempty"`
} `json:"location,omitempty"`
Properties map[string]interface{} `json:"properties,omitempty"`
} `json:"attributes,omitempty"`
ID string `json:"id,omitempty"`
Type string `json:"type,omitempty"`
Expand Down

0 comments on commit ea2bcd4

Please sign in to comment.