Skip to content

Commit 73bceed

Browse files
add property name to changes
1 parent fb520a8 commit 73bceed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/notion/sources/updated-page/updated-page.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default {
6060
Date.parse(page.last_edited_time),
6161
);
6262
if (count++ < 25) {
63-
this.emitEvent(page, [], true);
63+
this.emitEvent(page);
6464
}
6565
}
6666
this._setPropertyValues(propertyValues);
@@ -109,7 +109,7 @@ export default {
109109
ts,
110110
};
111111
},
112-
emitEvent(page, changes, isNewPage) {
112+
emitEvent(page, changes = [], isNewPage = true) {
113113
const meta = isNewPage
114114
? this.generateMeta(page, constants.summaries.PAGE_ADDED)
115115
: this.generateMeta(page, constants.summaries.PAGE_UPDATED);
@@ -165,6 +165,7 @@ export default {
165165
[propertyName]: currentValue,
166166
};
167167
changes.push({
168+
property: propertyName,
168169
previousValue,
169170
currentValue,
170171
});
@@ -177,6 +178,7 @@ export default {
177178
[propertyName]: currentValue,
178179
};
179180
changes.push({
181+
property: propertyName,
180182
previousValue,
181183
currentValue,
182184
});

0 commit comments

Comments
 (0)