MCPcopy Index your code
hub / github.com/simstudioai/sim / getPublishedAfter

Function getPublishedAfter

apps/sim/connectors/youtube/youtube.ts:182–187  ·  view source on GitHub ↗

* Reads the optional `publishedAfter` cutoff from sourceConfig as a timestamp (ms), * or null when unset/invalid.

(sourceConfig: Record<string, unknown>)

Source from the content-addressed store, hash-verified

180 * or null when unset/invalid.
181 */
182function getPublishedAfter(sourceConfig: Record<string, unknown>): number | null {
183 const raw = (sourceConfig.publishedAfter as string | undefined)?.trim()
184 if (!raw) return null
185 const ms = new Date(raw).getTime()
186 return Number.isNaN(ms) ? null : ms
187}
188
189/**
190 * Builds a metadata-only stub from a playlist item.

Callers 1

youtube.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected