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

@ -89,7 +89,7 @@ export class CalendarChannelSyncStatusService {
for (const calendarChannelId of calendarChannelIds) {
await this.cacheStorage.del(
`calendar-events-to-import:${workspaceId}:google-calendar:${calendarChannelId}`,
`calendar-events-to-import:${workspaceId}:${calendarChannelId}`,
);
}
@ -191,7 +191,7 @@ export class CalendarChannelSyncStatusService {
for (const calendarChannelId of calendarChannelIds) {
await this.cacheStorage.del(
`calendar-events-to-import:${workspaceId}:google-calendar:${calendarChannelId}`,
`calendar-events-to-import:${workspaceId}:${calendarChannelId}`,
);
}
@ -216,7 +216,7 @@ export class CalendarChannelSyncStatusService {
for (const calendarChannelId of calendarChannelIds) {
await this.cacheStorage.del(
`calendar-events-to-import:${workspaceId}:google-calendar:${calendarChannelId}`,
`calendar-events-to-import:${workspaceId}:${calendarChannelId}`,
);
}
await calendarChannelRepository.update(calendarChannelIds, {