MCPcopy Create free account
hub / github.com/simstudioai/sim / legacyTableRead

Function legacyTableRead

apps/sim/lib/webhooks/polling/canonical.test.ts:77–77  ·  view source on GitHub ↗
(c: TableConfig)

Source from the content-addressed store, hash-verified

75 // The exact pre-change table reader (already canonical-first, but tableId was
76 // never written, so it fell through to the raw keys).
77 const legacyTableRead = (c: TableConfig) => c.tableId ?? c.tableSelector ?? c.manualTableId
78 // Mirror of the migration 0253 backfill for table (canonical key is distinct).
79 const backfillTable = (c: TableConfig): TableConfig =>
80 c.tableId ? c : { ...c, tableId: c.tableSelector ?? c.manualTableId }

Callers 1

canonical.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected