OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
fix(api): temp limit values with 100_000 (max call stack reached)
Carl-Gerhard Lindesvärd6bfeca57087a
diff --git a/packages/trpc/src/routers/chart.ts b/packages/trpc/src/routers/chart.tsindex d8cc1afd9..ed7d87261 100644--- a/packages/trpc/src/routers/chart.ts+++ b/packages/trpc/src/routers/chart.ts@@ -160,6 +160,8 @@ export const chartRouter = createTRPCRouter({}sb.select.values = `distinct ${getSelectPropertyKey(property)} as values`;sb.where.date = `${toDate('created_at', 'month')} > now() - INTERVAL 6 MONTH`;+ sb.orderBy.created_at = 'created_at DESC';+ sb.limit = 100_000;const events = await chQuery<{ values: string[] }>(getSql());values.push(