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:
Raphaël Bosi
2024-09-19 18:32:25 +02:00
committed by GitHub
parent 8964d26d5b
commit 6a5f9492d3
8 changed files with 51 additions and 22 deletions

View File

@ -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}`,
);
}