File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -484,7 +484,11 @@ export const docusignConnector: ConnectorConfig = {
484484 }
485485
486486 const startPosition = cursor ? Number ( cursor ) : 0
487- const fromDate = new Date ( Date . now ( ) - lookbackDays * MS_PER_DAY )
487+ const cachedFromDate = syncContext ?. docusignFromDate as string | undefined
488+ const fromDate = cachedFromDate
489+ ? new Date ( cachedFromDate )
490+ : new Date ( Date . now ( ) - lookbackDays * MS_PER_DAY )
491+ if ( syncContext && ! cachedFromDate ) syncContext . docusignFromDate = fromDate . toISOString ( )
488492
489493 const queryParams = new URLSearchParams ( {
490494 from_date : formatFromDate ( fromDate ) ,
Original file line number Diff line number Diff line change @@ -488,6 +488,13 @@ export const fathomConnector: ConnectorConfig = {
488488 } )
489489 }
490490
491+ const hasTranscript = transcript . some ( ( entry ) => entry . text ?. trim ( ) )
492+ const hasSummary = Boolean ( summary ?. markdown_formatted ?. trim ( ) )
493+ if ( ! hasTranscript && ! hasSummary ) {
494+ logger . info ( 'No transcript or summary yet for Fathom meeting' , { externalId } )
495+ return null
496+ }
497+
491498 const header = readCachedHeader ( syncContext , externalId )
492499 const content = formatMeetingContent ( header , transcript , summary ) . trim ( )
493500 if ( ! content ) return null
You can’t perform that action at this time.
0 commit comments