Fix monthly active user stats query

pull/769/head
Matt Baer 1 year ago
parent 94bb566e4f
commit baf1d76475
  1. 2
      nodeinfo.go

@ -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)

Loading…
Cancel
Save