Skip to content

Commit 3d331bc

Browse files
use row hash string as id
1 parent da83e37 commit 3d331bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/google_sheets/sources/common/new-row-added.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ export default {
2828
_setRowHashes(rowHashes) {
2929
this.db.set("rowHashes", rowHashes);
3030
},
31-
getMeta(worksheet, rowNumber) {
31+
getMeta(worksheet, rowNumber, rowHashString) {
3232
const ts = Date.now();
33-
const id = `${worksheet.properties.sheetId}${rowNumber}`;
33+
const id = rowHashString;
3434
const summary = `New row #${rowNumber} in ${worksheet.properties.title}`;
3535
return {
3636
id,
@@ -178,7 +178,7 @@ export default {
178178
worksheet,
179179
rowNumber,
180180
},
181-
this.getMeta(worksheet, rowNumber),
181+
this.getMeta(worksheet, rowNumber, rowHashString),
182182
);
183183
}
184184
this._setRowHashes(rowHashes);

0 commit comments

Comments
 (0)