Skip to content

Commit 6b56e86

Browse files
reset the last date in activate hook
1 parent 8daab94 commit 6b56e86

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/gmail/sources/common/polling-messages.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ export default {
1212
}
1313
await this.processHistoricalEvents(messageIds);
1414
},
15+
async activate() {
16+
console.log(`Previous lastDate: ${this.getLastDate()}`);
17+
console.log("Activating source, will poll for new messages from now...");
18+
this.setLastDate(Date.now());
19+
},
1520
},
1621
methods: {
1722
...common.methods,

0 commit comments

Comments
 (0)