mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-27 01:04:19 +01:00
Fix tag history date
This commit is contained in:
@@ -65,7 +65,7 @@ class TrendsDB {
|
||||
getTagHistory({ tag, since, until, limit = 7, offset = 0 }: GetTagHistoryOpts) {
|
||||
return this.#db.query<string[]>(
|
||||
`
|
||||
SELECT inserted_at, COUNT(DISTINCT pubkey8), COUNT(*)
|
||||
SELECT date(inserted_at), COUNT(DISTINCT pubkey8), COUNT(*)
|
||||
FROM tag_usages
|
||||
WHERE tag = ? AND inserted_at >= ? AND inserted_at < ?
|
||||
GROUP BY date(inserted_at)
|
||||
|
||||
Reference in New Issue
Block a user