mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix(fathom): skip getDocument when header cache is missing instead of emitting a degraded, un-refreshable record (#4859)
This commit is contained in:
@@ -498,18 +498,28 @@ export const fathomConnector: ConnectorConfig = {
|
||||
}
|
||||
|
||||
const header = readCachedHeader(syncContext, externalId)
|
||||
if (!header) {
|
||||
logger.warn(
|
||||
'No cached header for Fathom meeting; skipping to avoid an un-refreshable record',
|
||||
{
|
||||
externalId,
|
||||
}
|
||||
)
|
||||
return null
|
||||
}
|
||||
|
||||
const content = formatMeetingContent(header, transcript, summary).trim()
|
||||
if (!content) return null
|
||||
|
||||
return {
|
||||
externalId,
|
||||
title: header?.title ?? 'Untitled Fathom Meeting',
|
||||
title: header.title,
|
||||
content,
|
||||
contentDeferred: false,
|
||||
mimeType: 'text/plain',
|
||||
sourceUrl: header?.sourceUrl,
|
||||
contentHash: header?.contentHash ?? `fathom:${externalId}`,
|
||||
metadata: { ...(header?.metadata ?? { recordingId: externalId }) },
|
||||
sourceUrl: header.sourceUrl,
|
||||
contentHash: header.contentHash,
|
||||
metadata: { ...header.metadata },
|
||||
}
|
||||
} catch (error) {
|
||||
logger.warn('Failed to get Fathom meeting', {
|
||||
|
||||
Reference in New Issue
Block a user