Skip to content

Commit 364e144

Browse files
authored
Merge pull request #3831 from techmatters/zero_retention_fix-v2.47-rc
Fix zero retention flag check
2 parents 71f413f + 40f84e2 commit 364e144

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lambdas/account-scoped/src/conversation/deleteClosedConversationHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const deleteClosedConversationEventHandler: ServiceScopedConversationEventHandle
4141
const serviceConfigAttributes = await retrieveServiceConfigurationAttributes(client);
4242

4343
const zeroTranscriptRetention = Boolean(
44-
serviceConfigAttributes.enforceZeroTranscriptRetention || 'false',
44+
serviceConfigAttributes.enforceZeroTranscriptRetention,
4545
);
4646
if (zeroTranscriptRetention && stateTo === 'closed') {
4747
console.debug(
@@ -70,7 +70,7 @@ const deleteInactiveChatChannelEventHandler: ServiceScopedConversationEventHandl
7070
const serviceConfigAttributes = await retrieveServiceConfigurationAttributes(client);
7171

7272
const zeroTranscriptRetention = Boolean(
73-
serviceConfigAttributes.enforceZeroTranscriptRetention || 'false',
73+
serviceConfigAttributes.enforceZeroTranscriptRetention,
7474
);
7575
if (zeroTranscriptRetention) {
7676
const { status } = JSON.parse(attributesJson || '{}');

0 commit comments

Comments
 (0)