fix(calendar): mark channel completed on no-events fetch (#22137)

No-events branch left channels stuck on syncStatus=ONGOING and stopped
bumping the active metric (flatlined dashboard), since
markAsCalendarEventListFetchPending only resets the stage.

Switched it to markAsCompletedAndMarkAsCalendarEventListFetchPending so
status, syncedAt, throttle and the metric reset properly, matching the
messaging side. Regression from #22015.
This commit is contained in:
neo773
2026-06-25 14:16:56 +05:30
committed by GitHub
parent 20f8321dca
commit 885effb3d8
@@ -87,7 +87,7 @@ export class CalendarFetchEventsService {
workspaceId,
);
} else {
await this.calendarChannelSyncStatusService.markAsCalendarEventListFetchPending(
await this.calendarChannelSyncStatusService.markAsCompletedAndMarkAsCalendarEventListFetchPending(
[calendarChannel.id],
workspaceId,
);