From b46bc84dab126bb2113234a762c9afb318c67454 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Fri, 10 Jan 2025 16:52:29 +0100 Subject: [PATCH] Fix mail import gmail driver when message has been deleted (#9546) We forgot to ignore messages that were removed --- .../drivers/gmail/services/gmail-get-messages.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/services/gmail-get-messages.service.ts b/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/services/gmail-get-messages.service.ts index 15590f1f5148..ce228e3d997b 100644 --- a/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/services/gmail-get-messages.service.ts +++ b/packages/twenty-server/src/modules/messaging/message-import-manager/drivers/gmail/services/gmail-get-messages.service.ts @@ -81,6 +81,8 @@ export class GmailGetMessagesService { response.error, messageIds[index], ); + + return undefined; } return parseAndFormatGmailMessage(