mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
fix(Gmail Trigger Node): Change Gmail Trigger dedupe logic (#10717)
This commit is contained in:
parent
d81f21d08e
commit
9f3e03d728
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue