1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 17:46:39 -04:00

limit number of most popular pages from fauna db

This commit is contained in:
2021-07-09 12:15:53 -04:00
parent 0adf03d969
commit b411560a34
5 changed files with 40 additions and 42 deletions

View File

@ -105,7 +105,7 @@ const getSiteStats = async (client: Client) => {
parser.parse(await (await fetch(baseUrl + "feed.xml")).text()), // this is messy but it works :)
client.query(
q.Map(
q.Paginate(q.Documents(q.Collection("hits"))),
q.Paginate(q.Documents(q.Collection("hits")), { size: 99 }),
q.Lambda((x) => q.Select("data", q.Get(x)))
)
),