Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/hubspot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/hubspot",
"version": "1.7.9",
"version": "1.7.10",
"description": "Pipedream Hubspot Components",
"main": "hubspot.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
key: "hubspot-new-deal-in-stage",
name: "New Deal In Stage",
description: "Emit new event for each new deal in a stage.",
version: "0.0.40",
version: "0.0.41",
dedupe: "unique",
type: "source",
props: {
Expand Down Expand Up @@ -100,7 +100,7 @@ export default {

for (const deal of results.results) {
const ts = await this.getTs(deal);
if (this.isRelevant(ts, after)) {
if (!after || this.isRelevant(ts, after)) {
if (deal.properties.hubspot_owner_id) {
deal.properties.owner = await this.getOwner(
deal.properties.hubspot_owner_id,
Expand All @@ -113,6 +113,11 @@ export default {
}
}
}

// first run, get only first page
if (!after) {
return;
}
} while (params.after);
},
async processResults(after) {
Expand Down
Loading