Skip to content

Commit e12c9d0

Browse files
committed
remove cache break
1 parent 862ba6d commit e12c9d0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/rpc/src/lib/analytics-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ export const processFunnelAnalytics = async (
603603
WITH all_step_events AS (
604604
${stepQueries.join('\n UNION ALL\n')}
605605
)
606-
SELECT
606+
SELECT DISTINCT
607607
step_number,
608608
step_name,
609609
session_id,
@@ -859,7 +859,7 @@ export const processFunnelAnalyticsByReferrer = async (
859859
WITH all_step_events AS (
860860
${stepQueries.join('\n UNION ALL\n')}
861861
)
862-
SELECT
862+
SELECT DISTINCT
863863
step_number,
864864
step_name,
865865
session_id,

packages/rpc/src/routers/goals.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ export const goalsRouter = createTRPCRouter({
228228
key: cacheKey,
229229
ttl: ANALYTICS_CACHE_TTL,
230230
tables: ['goals'],
231-
disabled: true,
232231
queryFn: async () => {
233232
await authorizeWebsiteAccess(ctx, input.websiteId, 'read');
234233
const goal = await ctx.db
@@ -304,7 +303,6 @@ export const goalsRouter = createTRPCRouter({
304303
key: cacheKey,
305304
ttl: ANALYTICS_CACHE_TTL,
306305
tables: ['goals'],
307-
disabled: true,
308306
queryFn: async () => {
309307
await authorizeWebsiteAccess(ctx, input.websiteId, 'read');
310308
const goalsList = await ctx.db

0 commit comments

Comments
 (0)