diff --git a/components/notion/package.json b/components/notion/package.json index cd9c3da3601e8..1d18c56c5e010 100644 --- a/components/notion/package.json +++ b/components/notion/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/notion", - "version": "0.2.0", + "version": "0.2.1", "description": "Pipedream Notion Components", "main": "notion.app.mjs", "keywords": [ diff --git a/components/notion/sources/updated-page/updated-page.mjs b/components/notion/sources/updated-page/updated-page.mjs index 8bbb5d423ddbb..2bdf9eae3b941 100644 --- a/components/notion/sources/updated-page/updated-page.mjs +++ b/components/notion/sources/updated-page/updated-page.mjs @@ -9,7 +9,7 @@ export default { key: "notion-updated-page", name: "Updated Page in Database", /* eslint-disable-line pipedream/source-name */ description: "Emit new event when a page in a database is updated. To select a specific page, use `Updated Page ID` instead", - version: "0.1.0", + version: "0.1.1", type: "source", dedupe: "unique", props: { @@ -171,7 +171,7 @@ export default { }); } - if (!pageExistsInDB && this.includeNewPages) { + if (!pageExistsInDB) { isNewPage = true; propertyHasChanged = true; propertyValues[page.id] = { @@ -185,6 +185,11 @@ export default { } } + if (isNewPage && !this.includeNewPages) { + console.log(`Ignoring new page: ${page.id}`); + continue; + } + if (propertyHasChanged) { this.emitEvent(page, changes, isNewPage); }