Skip to content

The open alternative to Salesforce, designed for AI.

Fix cache flush in messaging-channel-sync-status.service (#6024)

bosiraphael97822533db03
diff --git a/packages/twenty-server/src/modules/messaging/common/services/messaging-channel-sync-status.service.ts b/packages/twenty-server/src/modules/messaging/common/services/messaging-channel-sync-status.service.ts
index bf472695a8e..fce009b833d 100644
--- a/packages/twenty-server/src/modules/messaging/common/services/messaging-channel-sync-status.service.ts
+++ b/packages/twenty-server/src/modules/messaging/common/services/messaging-channel-sync-status.service.ts
@@ -57,7 +57,7 @@ export class MessagingChannelSyncStatusService {
messageChannelId: string,
workspaceId: string,
) {
- await this.cacheStorage.setPop(
+ await this.cacheStorage.del(
`messages-to-import:${workspaceId}:gmail:${messageChannelId}`,
);
@@ -126,7 +126,7 @@ export class MessagingChannelSyncStatusService {
messageChannelId: string,
workspaceId: string,
) {
- await this.cacheStorage.setPop(
+ await this.cacheStorage.del(
`messages-to-import:${workspaceId}:gmail:${messageChannelId}`,
);
@@ -147,7 +147,7 @@ export class MessagingChannelSyncStatusService {
messageChannelId: string,
workspaceId: string,
) {
- await this.cacheStorage.setPop(
+ await this.cacheStorage.del(
`messages-to-import:${workspaceId}:gmail:${messageChannelId}`,
);