Skip to content

Commit

Permalink
fix(Gmail Trigger Node): Change Gmail Trigger dedupe logic (#10717)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShireenMissi authored Sep 10, 2024
1 parent d81f21d commit 9f3e03d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export class GmailTrigger implements INodeType {
const nextPollPossibleDuplicates = (responseData as IDataObject[]).reduce(
(duplicates, { json }) => {
const emailDate = getEmailDateAsSeconds(json as IDataObject);
return emailDate === lastEmailDate
return emailDate <= lastEmailDate
? duplicates.concat((json as IDataObject).id as string)
: duplicates;
},
Expand Down

0 comments on commit 9f3e03d

Please sign in to comment.