Skip to content

Commit

Permalink
fix how tags are preprocessed
Browse files Browse the repository at this point in the history
  • Loading branch information
aubin-tchoi committed Mar 5, 2025
1 parent 8cccc34 commit 6055163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion connectors/src/connectors/gong/lib/gong_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const GongTranscriptMetadataCodec = t.intersection([
duration: t.number,
title: t.string,
media: t.union([t.literal("Video"), t.literal("Audio")]),
language: t.string,
language: t.string, // The language codes (as defined by ISO-639-2B): eng, fre, spa, ger, and ita.
isPrivate: t.boolean,
meetingUrl: t.union([t.string, t.null]),
}),
Expand Down
7 changes: 3 additions & 4 deletions connectors/src/connectors/gong/lib/upserts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ export async function syncGongTranscript({
const callDuration = `${hours} hours ${minutes < 10 ? "0" + minutes : minutes} minutes`;

const tags = [
transcriptMetadata.metaData.language,
transcriptMetadata.metaData.media,
transcriptMetadata.metaData.isPrivate ? "private" : "public",
transcriptMetadata.metaData.scope,
`language:${transcriptMetadata.metaData.language}`, // The language codes (as defined by ISO-639-2B): eng, fre, spa, ger, and ita.
`media:${transcriptMetadata.metaData.media}`,
`scope:${transcriptMetadata.metaData.scope}`,
...participants.map((p) => p.email),
];
let documentContent = `Meeting title: ${title}\n\nDate: ${createdAtDate.toISOString()}\n\nDuration: ${callDuration}\n\n`;
Expand Down

0 comments on commit 6055163

Please sign in to comment.