fs -> fs/promises -> asyncify all note parsing

This commit is contained in:
jake committed 2022-04-26 17:22:44 -04:00
1 parent 36e0835947
commit a3870a15db
6 files changed
+31 -21

No files matched your search

+1 -1
View File
@@ -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(