Skip to content

Commit

Permalink
bug fix (#11812)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelle0927 authored May 6, 2024
1 parent 76845a4 commit 3ad7fb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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": "0.8.2",
"version": "0.8.3",
"description": "Pipedream Hubspot Components",
"main": "hubspot.app.mjs",
"keywords": [
Expand Down
8 changes: 4 additions & 4 deletions components/hubspot/sources/new-engagement/new-engagement.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@ export default {
key: "hubspot-new-engagement",
name: "New Engagement",
description: "Emit new event for each new engagement created. This action returns a maximum of 5000 records at a time, make sure you set a correct time range so you don't miss any events",
version: "0.0.17",
version: "0.0.18",
dedupe: "unique",
type: "source",
hooks: {},
methods: {
...common.methods,
getTs(engagement) {
return Date.parse(engagement.createdAt);
return engagement.engagement.createdAt;
},
generateMeta(engagement) {
const {
id,
type,
} = engagement.engagement;
const ts = this.getTs(engagement.engagement);
const ts = this.getTs(engagement);
return {
id,
summary: type,
ts,
};
},
isRelevant(engagement, createdAfter) {
return this.getTs(engagement.engagement) > createdAfter;
return this.getTs(engagement) > createdAfter;
},
},
async run() {
Expand Down

0 comments on commit 3ad7fb6

Please sign in to comment.