mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -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(
|
const nextPollPossibleDuplicates = (responseData as IDataObject[]).reduce(
|
||||||
(duplicates, { json }) => {
|
(duplicates, { json }) => {
|
||||||
const emailDate = getEmailDateAsSeconds(json as IDataObject);
|
const emailDate = getEmailDateAsSeconds(json as IDataObject);
|
||||||
return emailDate === lastEmailDate
|
return emailDate <= lastEmailDate
|
||||||
? duplicates.concat((json as IDataObject).id as string)
|
? duplicates.concat((json as IDataObject).id as string)
|
||||||
: duplicates;
|
: duplicates;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue