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

Function stableEventKey

apps/sim/lib/billing/core/usage-log.ts:122–128  ·  view source on GitHub ↗
(parts: Record<string, unknown>)

Source from the content-addressed store, hash-verified

120 )
121
122export function stableEventKey(parts: Record<string, unknown>): string {
123 const payload = Object.keys(parts)
124 .sort()
125 .map((key) => `${key}:${String(parts[key] ?? '')}`)
126 .join('|')
127 return createHash('sha256').update(payload).digest('hex')
128}
129
130type ResolvedSubscription = Awaited<ReturnType<typeof getHighestPrioritySubscription>>
131

Callers 2

buildDeltaEntriesMethod · 0.90
recordUsageFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected