7142 make messaging full message list fetch idempotent (#7148)
- Add message deletion and thread cleaning during full message list fetch - Add thread cleaning during partial message list fetch - Delete provider from cache key
This commit is contained in:
@ -79,7 +79,7 @@ export class MessageChannelSyncStatusService {
|
||||
|
||||
for (const messageChannelId of messageChannelIds) {
|
||||
await this.cacheStorage.del(
|
||||
`messages-to-import:${workspaceId}:gmail:${messageChannelId}`,
|
||||
`messages-to-import:${workspaceId}:${messageChannelId}`,
|
||||
);
|
||||
}
|
||||
|
||||
@ -174,7 +174,7 @@ export class MessageChannelSyncStatusService {
|
||||
|
||||
for (const messageChannelId of messageChannelIds) {
|
||||
await this.cacheStorage.del(
|
||||
`messages-to-import:${workspaceId}:gmail:${messageChannelId}`,
|
||||
`messages-to-import:${workspaceId}:${messageChannelId}`,
|
||||
);
|
||||
}
|
||||
|
||||
@ -199,7 +199,7 @@ export class MessageChannelSyncStatusService {
|
||||
|
||||
for (const messageChannelId of messageChannelIds) {
|
||||
await this.cacheStorage.del(
|
||||
`messages-to-import:${workspaceId}:gmail:${messageChannelId}`,
|
||||
`messages-to-import:${workspaceId}:${messageChannelId}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user