Skip to content

The open alternative to Salesforce, designed for AI.

[messaging] Remove ids from enqueued jobs (#3936)

Weiko7f122a46711b
diff --git a/packages/twenty-server/src/workspace/messaging/crons/fetch-all-workspaces-messages.job.ts b/packages/twenty-server/src/workspace/messaging/crons/fetch-all-workspaces-messages.job.ts
index ec46c735138..4673daf1fb5 100644
--- a/packages/twenty-server/src/workspace/messaging/crons/fetch-all-workspaces-messages.job.ts
+++ b/packages/twenty-server/src/workspace/messaging/crons/fetch-all-workspaces-messages.job.ts
@@ -57,7 +57,6 @@ export class FetchAllWorkspacesMessagesJob
connectedAccountId: connectedAccount.id,
},
{
- id: `${workspaceId}-${connectedAccount.id}`,
retryLimit: 2,
},
);
diff --git a/packages/twenty-server/src/workspace/messaging/services/gmail-full-sync.service.ts b/packages/twenty-server/src/workspace/messaging/services/gmail-full-sync.service.ts
index e456d9f9aa6..d69efecd362 100644
--- a/packages/twenty-server/src/workspace/messaging/services/gmail-full-sync.service.ts
+++ b/packages/twenty-server/src/workspace/messaging/services/gmail-full-sync.service.ts
@@ -160,7 +160,6 @@ export class GmailFullSyncService {
nextPageToken: messages.data.nextPageToken,
},
{
- id: `${workspaceId}-${connectedAccountId}`,
retryLimit: 2,
},
);
diff --git a/packages/twenty-server/src/workspace/messaging/services/gmail-partial-sync.service.ts b/packages/twenty-server/src/workspace/messaging/services/gmail-partial-sync.service.ts
index 048394c4219..95d5f723bb2 100644
--- a/packages/twenty-server/src/workspace/messaging/services/gmail-partial-sync.service.ts
+++ b/packages/twenty-server/src/workspace/messaging/services/gmail-partial-sync.service.ts
@@ -228,7 +228,6 @@ export class GmailPartialSyncService {
GmailFullSyncJob.name,
{ workspaceId, connectedAccountId },
{
- id: `${workspaceId}-${connectedAccountId}`,
retryLimit: 2,
},
);