From 10ba04c187e47c4db3cd7e39c2084f0cfaf7668f Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Wed, 24 Apr 2024 16:14:06 -0500 Subject: [PATCH] chore: add missing `async` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit saw this via vscode... really wish `tsc` could flag this somehow 🤔 --- src/lib/getCategories.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/getCategories.ts b/src/lib/getCategories.ts index d823aa695..e050c1c02 100644 --- a/src/lib/getCategories.ts +++ b/src/lib/getCategories.ts @@ -10,7 +10,7 @@ import readmeAPIFetch, { cleanHeaders, handleRes } from './readmeAPIFetch.js'; * @returns An array of category objects */ export default async function getCategories(key: string, selectedVersion: string | undefined) { - function getNumberOfPages() { + async function getNumberOfPages() { let totalCount = 0; return readmeAPIFetch('/api/v1/categories?perPage=20&page=1', { method: 'get',