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

Function buildWhatsAppIdempotencyKey

apps/sim/lib/webhooks/providers/whatsapp.ts:123–131  ·  view source on GitHub ↗
(keys: Set<string>)

Source from the content-addressed store, hash-verified

121}
122
123function buildWhatsAppIdempotencyKey(keys: Set<string>): string | null {
124 if (keys.size === 0) {
125 return null
126 }
127
128 const sortedKeys = Array.from(keys).sort()
129 const digest = sha256Hex(sortedKeys.join('|'))
130 return `whatsapp:${sortedKeys.length}:${digest}`
131}
132
133/**
134 * Handle WhatsApp verification requests

Callers 1

extractIdempotencyIdFunction · 0.85

Calls 2

sha256HexFunction · 0.90
joinMethod · 0.80

Tested by

no test coverage detected