Skip to content

Commit 49e2a7e

Browse files
committed
Apollo search contacts bug fix
1 parent 65e79d1 commit 49e2a7e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

components/apollo_io/actions/search-contacts/search-contacts.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
name: "Search For Contacts",
77
description: "Search for contacts in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#search-for-contacts)",
88
type: "action",
9-
version: "0.0.4",
9+
version: "0.0.6", //4
1010
props: {
1111
app,
1212
search: {
@@ -43,7 +43,7 @@ export default {
4343
},
4444
},
4545
async run({ $ }) {
46-
const resourcesStream = this.app.getResourcesStream({
46+
const resourcesStream = this.app.getIterations({
4747
resourceFn: this.app.searchContacts,
4848
resourceFnArgs: {
4949
params: {
@@ -56,7 +56,7 @@ export default {
5656
resourceName: "contacts",
5757
});
5858

59-
const contacts = await utils.streamIterator(resourcesStream);
59+
const contacts = await utils.iterate(resourcesStream);
6060

6161
$.export("$summary", `Successfully fetched ${contacts.length} contacts.`);
6262

components/apollo_io/actions/search-sequences/search-sequences.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default {
1616
},
1717
},
1818
async run({ $ }) {
19-
const resourcesStream = this.app.getResourcesStream({
19+
const resourcesStream = this.app.getIterations({
2020
resourceFn: this.app.listSequences,
2121
resourceFnArgs: {
2222
params: {
@@ -26,7 +26,7 @@ export default {
2626
resourceName: "emailer_campaigns",
2727
});
2828

29-
const sequences = await utils.streamIterator(resourcesStream);
29+
const sequences = await utils.iterate(resourcesStream);
3030

3131
$.export("$summary", `Successfully fetched ${sequences.length} sequences.`);
3232

components/apollo_io/actions/update-contact-stage/update-contact-stage.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Update Contact Stage",
66
description: "Updates the stage of one or more contacts in Apollo.io. [See the documentation](https://apolloio.github.io/apollo-api-docs/?shell#update-contact-stage)",
77
type: "action",
8-
version: "0.0.5",
8+
version: "0.0.6",
99
props: {
1010
app,
1111
contactIds: {

components/apollo_io/apollo_io.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ export default {
216216
return {
217217
"Content-Type": "application/json",
218218
"Cache-Control": "no-cache",
219+
"X-Api-Key": this.$auth.api_key, // ✅ this is correct
219220
...headers,
220221
};
221222
},
222223
getParams(params) {
223224
return {
224-
api_key: this.$auth.api_key,
225225
...params,
226226
};
227227
},

0 commit comments

Comments
 (0)