From 98eb26fd9ee1b30f0aa0493999c4d4f766dcffe5 Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Thu, 8 May 2025 09:15:27 -0700 Subject: [PATCH] fixed getAttribution table alias typo --- pnpm-lock.yaml | 2 -- src/queries/sql/reports/getAttribution.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 20f2ff55..dfca7de5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -346,8 +346,6 @@ importers: specifier: ^5.5.3 version: 5.8.3 - src/generated/prisma: {} - packages: '@ampproject/remapping@2.3.0': diff --git a/src/queries/sql/reports/getAttribution.ts b/src/queries/sql/reports/getAttribution.ts index e690d50f..0c3d447a 100644 --- a/src/queries/sql/reports/getAttribution.ts +++ b/src/queries/sql/reports/getAttribution.ts @@ -398,7 +398,7 @@ async function clickhouseQuery( li_fat_id != '', 'LinkedIn Ads', twclid != '', 'Twitter Ads (X)','') name, ${currency ? 'sum(e.value)' : 'uniqExact(we.session_id)'} value - from model fm + from model m join website_event we on we.created_at = m.created_at and we.session_id = m.session_id