From 97822533db0338bbb8b5ae51cd4525d60ecf9da8 Mon Sep 17 00:00:00 2001 From: bosiraphael <71827178+bosiraphael@users.noreply.github.com> Date: Thu, 27 Jun 2024 09:58:37 +0200 Subject: [PATCH] Fix cache flush in messaging-channel-sync-status.service (#6024) Fix cache flush in messaging-channel-sync-status.service --- .../services/messaging-channel-sync-status.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 bf472695a..fce009b83 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}`, );