From 06614072cfad245b3ef2017e591043f47c7265f0 Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Fri, 7 Feb 2025 19:38:33 -0600 Subject: [PATCH] Remove GitHub api logging --- src/admin/github/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/admin/github/index.ts b/src/admin/github/index.ts index b10d25e5..f04491d5 100644 --- a/src/admin/github/index.ts +++ b/src/admin/github/index.ts @@ -10,8 +10,8 @@ const CACHE_GITHUB_REQUESTS = false; // Cache all results for 2 minutes to avoid rate limiting // GitHub API requests limited to 60 requests per hour -const FETCH_CONFIG: RequestInit = CACHE_GITHUB_REQUESTS - ? { next: { revalidate: 120 } } : {}; +const FETCH_CONFIG: RequestInit | undefined= CACHE_GITHUB_REQUESTS + ? { next: { revalidate: 120 } } : undefined; interface RepoParams { owner?: string @@ -93,7 +93,6 @@ const getGitHubCommitsBehindFromCommit = async (params?: RepoParams) => { FETCH_CONFIG, ); const data = await response.json(); - console.log('getGitHubCommitsBehindFromCommit', data); return data.behind_by as number; };