mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 14:25:31 -04:00
fs
-> fs/promises
-> asyncify all note parsing
This commit is contained in:
@@ -98,7 +98,7 @@ const incrementPageHits = async (slug: string | string[], client: faunadb.Client
|
||||
};
|
||||
|
||||
const getSiteStats = async (client: faunadb.Client) => {
|
||||
const notes = getAllNotes();
|
||||
const notes = await getAllNotes();
|
||||
const q = faunadb.query;
|
||||
|
||||
const { data: pages }: { data: PageStats[] } = await client.query(
|
||||
|
Reference in New Issue
Block a user