Skip to content

Commit 7afed0d

Browse files
waleedlatif1claude
andcommitted
fix(webhooks): replace crypto.randomUUID() with generateId() in ashby handler
Per project coding standards, use generateId() from @/lib/core/utils/uuid instead of crypto.randomUUID() directly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 78e6de5 commit 7afed0d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/sim/lib/webhooks/providers/ashby.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import crypto from 'crypto'
22
import { createLogger } from '@sim/logger'
33
import { safeCompare } from '@/lib/core/security/encryption'
4+
import { generateId } from '@/lib/core/utils/uuid'
45
import { getNotificationUrl, getProviderConfig } from '@/lib/webhooks/providers/subscription-utils'
56
import type {
67
DeleteSubscriptionContext,
@@ -91,7 +92,7 @@ export const ashbyHandler: WebhookProviderHandler = {
9192
webhookId: ctx.webhook.id,
9293
})
9394

94-
const secretToken = crypto.randomUUID()
95+
const secretToken = generateId()
9596

9697
const requestBody: Record<string, unknown> = {
9798
requestUrl: notificationUrl,

0 commit comments

Comments
 (0)