Skip to content

Commit 91366d2

Browse files
committed
adjust history logic
1 parent 0965af5 commit 91366d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ export default {
6363
if (!history || history.length === 0) {
6464
return false;
6565
}
66+
67+
const propertyTimestamp = history[0].timestamp;
68+
const createDate = contact.properties.createdate;
69+
70+
if (propertyTimestamp === createDate) {
71+
return false;
72+
}
6673
}
6774

6875
return !updatedAfter || this.getTs(contact) > updatedAfter;

0 commit comments

Comments
 (0)