Fix messaging direct import (#16354)
Mainly clarifying naming (scheduleMessageImport was actually tagging as PENDING) + tagging as SCHEDULED in case of direct import (we skip PENDING state)
This commit is contained in:
+5
-5
@@ -32,7 +32,7 @@ export class MessageChannelSyncStatusService {
|
||||
private readonly metricsService: MetricsService,
|
||||
) {}
|
||||
|
||||
public async scheduleMessageListFetch(
|
||||
public async markAsMessagesListFetchPending(
|
||||
messageChannelIds: string[],
|
||||
workspaceId: string,
|
||||
preserveSyncStageStartedAt: boolean = false,
|
||||
@@ -53,7 +53,7 @@ export class MessageChannelSyncStatusService {
|
||||
});
|
||||
}
|
||||
|
||||
public async scheduleMessagesImport(
|
||||
public async markAsMessagesImportPending(
|
||||
messageChannelIds: string[],
|
||||
workspaceId: string,
|
||||
preserveSyncStageStartedAt: boolean = false,
|
||||
@@ -74,7 +74,7 @@ export class MessageChannelSyncStatusService {
|
||||
});
|
||||
}
|
||||
|
||||
public async resetAndScheduleMessageListFetch(
|
||||
public async resetAndMarkAsMessagesListFetchPending(
|
||||
messageChannelIds: string[],
|
||||
workspaceId: string,
|
||||
) {
|
||||
@@ -115,7 +115,7 @@ export class MessageChannelSyncStatusService {
|
||||
},
|
||||
);
|
||||
|
||||
await this.scheduleMessageListFetch(messageChannelIds, workspaceId);
|
||||
await this.markAsMessagesListFetchPending(messageChannelIds, workspaceId);
|
||||
}
|
||||
|
||||
public async resetSyncStageStartedAt(
|
||||
@@ -178,7 +178,7 @@ export class MessageChannelSyncStatusService {
|
||||
});
|
||||
}
|
||||
|
||||
public async markAsCompletedAndScheduleMessageListFetch(
|
||||
public async markAsCompletedAndMarkAsMessagesListFetchPending(
|
||||
messageChannelIds: string[],
|
||||
workspaceId: string,
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user