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

Function toBool

apps/sim/lib/webhooks/providers/fathom.ts:39–42  ·  view source on GitHub ↗
(val: unknown, fallback: boolean)

Source from the content-addressed store, hash-verified

37 const triggeredForValue = triggeredFor || 'my_recordings'
38
39 const toBool = (val: unknown, fallback: boolean): boolean => {
40 if (val === undefined) return fallback
41 return val === true || val === 'true'
42 }
43
44 const requestBody: Record<string, unknown> = {
45 destination_url: notificationUrl,

Callers 1

createSubscriptionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected