Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

optimize

Kiran Kdd21af692cf2
diff --git a/apps/web/lib/webhook/publish-edge.ts b/apps/web/lib/webhook/publish-edge.ts
index 1733e4229b..89be771d78 100644
--- a/apps/web/lib/webhook/publish-edge.ts
+++ b/apps/web/lib/webhook/publish-edge.ts
@@ -35,7 +35,8 @@ export const sendLinkWebhookOnEdge = async (
return;
}
- const webhooks = linkWebhooks.map(({ webhook }) => webhook);
-
- return sendWebhooks(trigger, { webhooks, data });
+ return sendWebhooks(trigger, {
+ webhooks: linkWebhooks.map(({ webhook }) => webhook),
+ data,
+ });
};
diff --git a/apps/web/lib/webhook/publish.ts b/apps/web/lib/webhook/publish.ts
index 7915cd7693..0007d1ac3e 100644
--- a/apps/web/lib/webhook/publish.ts
+++ b/apps/web/lib/webhook/publish.ts
@@ -67,7 +67,8 @@ export const sendLinkWebhook = async (
return;
}
- const webhooks = linkWebhooks.map(({ webhook }) => webhook);
-
- return sendWebhooks(trigger, { webhooks, data });
+ return sendWebhooks(trigger, {
+ webhooks: linkWebhooks.map(({ webhook }) => webhook),
+ data,
+ });
};