mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 11:24:13 +00:00
Fix monthly active user stats query
This commit is contained in:
parent
94bb566e4f
commit
baf1d76475
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue