Skip to content

Commit c4316f7

Browse files
Merging pull request #18294
* fix - run only on page on first run * bump versions
1 parent 201c939 commit c4316f7

File tree

26 files changed

+37
-30
lines changed

26 files changed

+37
-30
lines changed

components/hubspot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/hubspot",
3-
"version": "1.6.3",
3+
"version": "1.6.4",
44
"description": "Pipedream Hubspot Components",
55
"main": "hubspot.app.mjs",
66
"keywords": [

components/hubspot/sources/common/common.mjs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
},
1515
methods: {
1616
_getAfter() {
17-
return this.db.get("after") || new Date().setDate(new Date().getDate() - 1); // 1 day ago
17+
return this.db.get("after");
1818
},
1919
_setAfter(after) {
2020
this.db.set("after", after);
@@ -92,6 +92,11 @@ export default {
9292
return;
9393
}
9494
}
95+
96+
// first run, get only first page
97+
if (!after) {
98+
return;
99+
}
95100
}
96101
},
97102
// pagination for endpoints that return hasMore property of true/false
@@ -128,6 +133,11 @@ export default {
128133
}
129134
}
130135
}
136+
137+
// first run, get only first page
138+
if (!after) {
139+
return;
140+
}
131141
}
132142
},
133143
async getPaginatedItems(resourceFn, params) {

components/hubspot/sources/delete-blog-article/delete-blog-article.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "hubspot-delete-blog-article",
77
name: "Deleted Blog Posts",
88
description: "Emit new event for each deleted blog post.",
9-
version: "0.0.27",
9+
version: "0.0.28",
1010
dedupe: "unique",
1111
type: "source",
1212
methods: {

components/hubspot/sources/new-company-property-change/new-company-property-change.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "hubspot-new-company-property-change",
88
name: "New Company Property Change",
99
description: "Emit new event when a specified property is provided or updated on a company. [See the documentation](https://developers.hubspot.com/docs/api/crm/companies)",
10-
version: "0.0.20",
10+
version: "0.0.21",
1111
dedupe: "unique",
1212
type: "source",
1313
props: {

components/hubspot/sources/new-contact-property-change/new-contact-property-change.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "hubspot-new-contact-property-change",
88
name: "New Contact Property Change",
99
description: "Emit new event when a specified property is provided or updated on a contact. [See the documentation](https://developers.hubspot.com/docs/api/crm/contacts)",
10-
version: "0.0.22",
10+
version: "0.0.23",
1111
dedupe: "unique",
1212
type: "source",
1313
props: {

components/hubspot/sources/new-custom-object-property-change/new-custom-object-property-change.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "hubspot-new-custom-object-property-change",
77
name: "New Custom Object Property Change",
88
description: "Emit new event when a specified property is provided or updated on a custom object.",
9-
version: "0.0.12",
9+
version: "0.0.13",
1010
dedupe: "unique",
1111
type: "source",
1212
props: {

components/hubspot/sources/new-deal-in-stage/new-deal-in-stage.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
key: "hubspot-new-deal-in-stage",
1212
name: "New Deal In Stage",
1313
description: "Emit new event for each new deal in a stage.",
14-
version: "0.0.33",
14+
version: "0.0.34",
1515
dedupe: "unique",
1616
type: "source",
1717
props: {

components/hubspot/sources/new-deal-property-change/new-deal-property-change.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "hubspot-new-deal-property-change",
88
name: "New Deal Property Change",
99
description: "Emit new event when a specified property is provided or updated on a deal. [See the documentation](https://developers.hubspot.com/docs/api/crm/deals)",
10-
version: "0.0.21",
10+
version: "0.0.22",
1111
dedupe: "unique",
1212
type: "source",
1313
props: {

components/hubspot/sources/new-email-event/new-email-event.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "hubspot-new-email-event",
99
name: "New Email Event",
1010
description: "Emit new event for each new Hubspot email event.",
11-
version: "0.0.30",
11+
version: "0.0.31",
1212
dedupe: "unique",
1313
type: "source",
1414
props: {

components/hubspot/sources/new-email-subscriptions-timeline/new-email-subscriptions-timeline.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "hubspot-new-email-subscriptions-timeline",
77
name: "New Email Subscriptions Timeline",
88
description: "Emit new event when a new email timeline subscription is added for the portal.",
9-
version: "0.0.27",
9+
version: "0.0.28",
1010
dedupe: "unique",
1111
type: "source",
1212
methods: {

0 commit comments

Comments
 (0)