Skip to content

Commit 65f764a

Browse files
Update components/icontact/actions/create-contact/create-contact.mjs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 10e2033 commit 65f764a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/icontact/actions/create-contact/create-contact.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ export default {
9898
async run({ $ }) {
9999
const {
100100
icontact,
101-
...campaign
101+
...contact
102102
} = this;
103103

104104
const { contacts } = await icontact.searchContact({
105105
params: {
106-
email: campaign.email,
106+
email: contact.email,
107107
},
108108
});
109109

@@ -112,9 +112,10 @@ export default {
112112
const response = await icontact.createContact({
113113
$,
114114
data: {
115-
campaign,
115+
contact,
116116
},
117117
});
118+
});
118119

119120
checkWarnings(response);
120121

0 commit comments

Comments
 (0)