From 9d9381760025ec2f0c124ea3c4a8ae43c544a2f8 Mon Sep 17 00:00:00 2001 From: Josh <102478723+realjoshuau@users.noreply.github.com> Date: Thu, 23 Nov 2023 22:01:59 -0600 Subject: [PATCH] Update index.ts --- packages/tba/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/tba/index.ts b/packages/tba/index.ts index fe425a4..b1cee67 100644 --- a/packages/tba/index.ts +++ b/packages/tba/index.ts @@ -1,7 +1,7 @@ // docs: https://www.thebluealliance.com/apidocs/v3 export const tpaApiUrl = 'https://www.thebluealliance.com/api/v3'; export const statboticsApiUrl = 'https://api.statbotics.io/v2'; -export const apiKey = process.env.TBA_API_KEY || "whoops! shouldn't see this!"; -if (!apiKey || apiKey.includes('whoops')) { +export const apiKey = process.env.TBA_API_KEY || ""; +if (!apiKey || apiKey === "") { throw new Error('no TBA API key found'); }