Fix messaging import issue when all batch messages are excluded
This commit is contained in:
@ -112,18 +112,6 @@ export class GmailMessagesImportV2Service {
|
|||||||
blocklist.map((blocklistItem) => blocklistItem.handle),
|
blocklist.map((blocklistItem) => blocklistItem.handle),
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!messagesToSave.length) {
|
|
||||||
await this.messageChannelSyncStatusService.markAsCompletedAndSchedulePartialMessageListFetch(
|
|
||||||
messageChannel.id,
|
|
||||||
workspaceId,
|
|
||||||
);
|
|
||||||
|
|
||||||
return await this.trackMessageImportCompleted(
|
|
||||||
messageChannel,
|
|
||||||
workspaceId,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
await this.saveMessagesAndEnqueueContactCreationService.saveMessagesAndEnqueueContactCreationJob(
|
await this.saveMessagesAndEnqueueContactCreationService.saveMessagesAndEnqueueContactCreationJob(
|
||||||
messagesToSave,
|
messagesToSave,
|
||||||
messageChannel,
|
messageChannel,
|
||||||
|
|||||||
Reference in New Issue
Block a user