Skip to content

Commit

Permalink
More logging - truthy values check (#8768)
Browse files Browse the repository at this point in the history
  • Loading branch information
albandum authored Nov 19, 2024
1 parent 961830f commit 3a06e31
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions front/temporal/labs/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ export async function processTranscriptActivity(

// Decide to store transcript or not (user might not have participated)
const shouldStoreTranscript =
(transcriptsConfiguration.dataSourceViewId && userParticipated) ||
(gongFullStorageFF && gongFullStorageDataSourceViewId);
(userParticipated && !!transcriptsConfiguration.dataSourceViewId) ||
(gongFullStorageFF && !!gongFullStorageDataSourceViewId);

// Decide to process transcript or not (user needs to have participated)
const shouldProcessTranscript =
Expand All @@ -290,8 +290,11 @@ export async function processTranscriptActivity(
localLogger.info(
{
fileId,
transcriptTitle,
transcriptContentLength: transcriptContent.length,
userParticipated,
transcriptsConfigurationDataSourceViewId:
transcriptsConfiguration.dataSourceViewId,
gongFullStorageFF,
gongFullStorageDataSourceViewId,
shouldStoreTranscript,
shouldProcessTranscript,
},
Expand Down

0 comments on commit 3a06e31

Please sign in to comment.