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:
@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user