making sure status is "ONGOING" (#12432)

Fixes #12428
This commit is contained in:
Guillim
2025-06-03 14:36:06 +02:00
committed by GitHub
parent a8eacd30a1
commit 179365b4bc

View File

@ -10,6 +10,7 @@ import { TwentyORMGlobalManager } from 'src/engine/twenty-orm/twenty-orm-global.
import { WorkspaceEventEmitter } from 'src/engine/workspace-event-emitter/workspace-event-emitter';
import {
MessageChannelSyncStage,
MessageChannelSyncStatus,
MessageChannelWorkspaceEntity,
} from 'src/modules/messaging/common/standard-objects/message-channel.workspace-entity';
@ -47,7 +48,7 @@ export class ResetMessageChannelService {
},
{
syncStage: MessageChannelSyncStage.FULL_MESSAGE_LIST_FETCH_PENDING,
syncStatus: null,
syncStatus: MessageChannelSyncStatus.ONGOING,
syncCursor: '',
syncStageStartedAt: null,
},