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

Function resolvePropertySnapshot

apps/sim/lib/webhooks/polling/hubspot.ts:583–593  ·  view source on GitHub ↗
(
  config: HubSpotWebhookConfig,
  property: string
)

Source from the content-addressed store, hash-verified

581}
582
583function resolvePropertySnapshot(
584 config: HubSpotWebhookConfig,
585 property: string
586): PropertySnapshotState {
587 const existing = config.propertySnapshot
588 if (existing && existing.property === property && Array.isArray(existing.entries)) {
589 return { property, values: new Map(existing.entries) }
590 }
591 // Property changed since last config — start fresh so we don't compare against stale values.
592 return { property, values: new Map() }
593}
594
595function serializeSnapshot(state: PropertySnapshotState): {
596 property: string

Callers 1

pollSearchBasedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected