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.

Update v2_count.pipe

Kiran K92542f1a382b
diff --git a/packages/tinybird/pipes/v2_count.pipe b/packages/tinybird/pipes/v2_count.pipe
index 4ef9bd6d8c..2f8202fa93 100644
--- a/packages/tinybird/pipes/v2_count.pipe
+++ b/packages/tinybird/pipes/v2_count.pipe
@@ -46,8 +46,8 @@ SQL >
true
{% if defined(linkId) %} AND link_id = {{ String(linkId) }} {% end %}
{% if defined(customerId) %}
- AND click_id IN (
- SELECT DISTINCT click_id
+ AND link_id IN (
+ SELECT DISTINCT link_id
FROM dub_lead_events_mv
WHERE customer_id = {{ String(customerId) }}
)