Skip to content

Commit 8f8db29

Browse files
committed
fix(linq): read triggerApiKey in webhook deleteSubscription
deleteSubscription still read config.apiKey after the credential rename, so undeploy would skip the DELETE and orphan the Linq subscription. Match createSubscription's triggerApiKey key.
1 parent 3975117 commit 8f8db29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/lib/webhooks/providers

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export const linqHandler: WebhookProviderHandler = {
232232
const { webhook, requestId } = ctx
233233
try {
234234
const config = getProviderConfig(webhook)
235-
const apiKey = config.apiKey as string | undefined
235+
const apiKey = config.triggerApiKey as string | undefined
236236
const externalId = config.externalId as string | undefined
237237

238238
if (!apiKey || !externalId) {

0 commit comments

Comments
 (0)