From 7ff85d8752f2c7cd2025fd1b2d38b3262e02c203 Mon Sep 17 00:00:00 2001 From: Nurul Sundarani Date: Thu, 25 Jun 2026 15:41:46 +0530 Subject: [PATCH] fix(blog): update PostHog query to filter posts by month range --- apps/blog/scripts/update-posthog-blog-tiles.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/blog/scripts/update-posthog-blog-tiles.mjs b/apps/blog/scripts/update-posthog-blog-tiles.mjs index d1f0b2a23d..b426b6193c 100644 --- a/apps/blog/scripts/update-posthog-blog-tiles.mjs +++ b/apps/blog/scripts/update-posthog-blog-tiles.mjs @@ -82,7 +82,7 @@ function postsPerMonthQuery(tuples) { display: "ActionsBar", source: { kind: "HogQLQuery", - query: `SELECT toDate(concat(t.1, '-01')) AS month, t.2 AS posts FROM (SELECT arrayJoin([${tuples}]) AS t) ORDER BY month`, + query: `SELECT month, posts FROM (SELECT toDate(concat(t.1, '-01')) AS month, t.2 AS posts FROM (SELECT arrayJoin([${tuples}]) AS t)) WHERE month >= toStartOfMonth(today()) - toIntervalMonth(11) ORDER BY month`, }, chartSettings: { xAxis: { column: "month" },