The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix: Set sync stage started at when starting sync (#7046)
Raphaël Bosif1264fda764d
diff --git a/packages/twenty-server/src/modules/messaging/common/services/message-channel-sync-status.service.ts b/packages/twenty-server/src/modules/messaging/common/services/message-channel-sync-status.service.tsindex 88da8e85924..02d6045b83e 100644--- a/packages/twenty-server/src/modules/messaging/common/services/message-channel-sync-status.service.ts+++ b/packages/twenty-server/src/modules/messaging/common/services/message-channel-sync-status.service.ts@@ -125,6 +125,7 @@ export class MessageChannelSyncStatusService {await messageChannelRepository.update(messageChannelIds, {syncStage: MessageChannelSyncStage.MESSAGE_LIST_FETCH_ONGOING,syncStatus: MessageChannelSyncStatus.ONGOING,+ syncStageStartedAt: new Date().toISOString(),});}@@ -142,9 +143,10 @@ export class MessageChannelSyncStatusService {await messageChannelRepository.update(messageChannelIds, {syncStatus: MessageChannelSyncStatus.ACTIVE,+ syncStage: MessageChannelSyncStage.PARTIAL_MESSAGE_LIST_FETCH_PENDING,+ throttleFailureCount: 0,+ syncStageStartedAt: null,});-- await this.schedulePartialMessageListFetch(messageChannelIds);}public async markAsMessagesImportOngoing(messageChannelIds: string[]) {