fix(Gmail Trigger Node): Change Gmail Trigger dedupe logic (#10717)

This commit is contained in:
Shireen Missi 2024-09-10 08:55:04 +01:00 committed by GitHub
parent d81f21d08e
commit 9f3e03d728
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
},