From 3ad7fb6cfef939bc6d3fdfd6ec45bfd4c597db2c Mon Sep 17 00:00:00 2001 From: michelle0927 Date: Mon, 6 May 2024 10:00:22 -0400 Subject: [PATCH] bug fix (#11812) --- components/hubspot/package.json | 2 +- .../hubspot/sources/new-engagement/new-engagement.mjs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/hubspot/package.json b/components/hubspot/package.json index 77d470d195e7e..adbe476f4fe84 100644 --- a/components/hubspot/package.json +++ b/components/hubspot/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/hubspot", - "version": "0.8.2", + "version": "0.8.3", "description": "Pipedream Hubspot Components", "main": "hubspot.app.mjs", "keywords": [ diff --git a/components/hubspot/sources/new-engagement/new-engagement.mjs b/components/hubspot/sources/new-engagement/new-engagement.mjs index 6e3d78e9a1b68..a5d9c33e71c84 100644 --- a/components/hubspot/sources/new-engagement/new-engagement.mjs +++ b/components/hubspot/sources/new-engagement/new-engagement.mjs @@ -5,21 +5,21 @@ 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, @@ -27,7 +27,7 @@ export default { }; }, isRelevant(engagement, createdAfter) { - return this.getTs(engagement.engagement) > createdAfter; + return this.getTs(engagement) > createdAfter; }, }, async run() {