MCPcopy Create free account
hub / github.com/electric-sql/electric / cronTaskStreamPath

Function cronTaskStreamPath

packages/agents-server/src/scheduler.ts:231–237  ·  view source on GitHub ↗
(
  payload: DelayedSendPayload | CronTickPayload
)

Source from the content-addressed store, hash-verified

229}
230
231function cronTaskStreamPath(
232 payload: DelayedSendPayload | CronTickPayload
233): string | null {
234 return typeof (payload as { streamPath?: unknown }).streamPath === `string`
235 ? (payload as { streamPath: string }).streamPath
236 : null
237}
238
239function normalizeTask(row: ScheduledTaskRow): {
240 id: number

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected