Skip to content

Commit 1291db0

Browse files
committed
refactor(connectors): dedicated TRANSCRIPTS_PAGE_SIZE constant for Meet transcripts
1 parent 0b052bb commit 1291db0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/sim/connectors/google-meet/google-meet.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const MEET_API_BASE = 'https://meet.googleapis.com/v2'
1111
const MS_PER_DAY = 24 * 60 * 60 * 1000
1212
/** Conference records list page size (Meet API max is 100). */
1313
const RECORDS_PAGE_SIZE = 100
14+
/** Transcripts list page size (Meet API max is 100). */
15+
const TRANSCRIPTS_PAGE_SIZE = 100
1416
/** Transcript entries page size (Meet API max is 100). */
1517
const ENTRIES_PAGE_SIZE = 100
1618
/** Max concurrent participant-name lookups during a single getDocument call. */
@@ -201,7 +203,7 @@ async function fetchTranscripts(accessToken: string, recordName: string): Promis
201203
const transcripts: Transcript[] = []
202204
let pageToken: string | undefined
203205
do {
204-
const params = new URLSearchParams({ pageSize: String(RECORDS_PAGE_SIZE) })
206+
const params = new URLSearchParams({ pageSize: String(TRANSCRIPTS_PAGE_SIZE) })
205207
if (pageToken) params.set('pageToken', pageToken)
206208
const response = await fetchWithRetry(
207209
`${MEET_API_BASE}/${recordName}/transcripts?${params.toString()}`,

0 commit comments

Comments
 (0)