Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix sorting in camapaign analytics view counts.

Kailash Nadh284158666b9a
diff --git a/queries.sql b/queries.sql
index e71b208f..3bf818ba 100644
--- a/queries.sql
+++ b/queries.sql
@@ -703,7 +703,7 @@ uniqIDs AS (
ORDER BY subscriber_id, "timestamp"
)
SELECT COUNT(*) AS "count", campaign_id, "timestamp"
- FROM uniqIDs GROUP BY campaign_id, "timestamp";
+ FROM uniqIDs GROUP BY campaign_id, "timestamp" ORDER BY "timestamp" ASC;
-- name: get-campaign-analytics-counts
-- raw: true