Fix monthly active user stats query

This commit is contained in:
Matt Baer 2023-09-21 17:08:17 -04:00
parent 94bb566e4f
commit baf1d76475

View file

@ -98,7 +98,7 @@ WHERE collection_id IS NOT NULL
err = r.db.QueryRow(`SELECT COUNT(*) FROM (
SELECT DISTINCT collection_id
FROM posts
INNER JOIN FROM collections c
INNER JOIN collections c
ON collection_id = c.id
WHERE collection_id IS NOT NULL
AND updated > DATE_SUB(NOW(), INTERVAL 1 MONTH)) co`).Scan(&activeMonth)