Skip to content

Commit 781cc28

Browse files
committed
reject object typed idempotency key
1 parent 23d69d1 commit 781cc28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/lib/webhooks/processor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ export async function queueWebhookExecution(
10641064
const value = idempotencyField
10651065
.split('.')
10661066
.reduce((acc: any, key: string) => acc?.[key], body)
1067-
if (value !== undefined && value !== null) {
1067+
if (value !== undefined && value !== null && typeof value !== 'object') {
10681068
headers['x-sim-idempotency-key'] = String(value)
10691069
}
10701070
}

0 commit comments

Comments
 (0)