Skip to content

Commit

Permalink
chore: tidy client imports and exports
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-hh-aa committed Nov 25, 2024
1 parent 1d25b1f commit 0dcdad4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api.planx.uk/modules/analytics/metabase/shared/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ interface MetabaseConfig {
}

// Validate environment variables
const validateConfig = (): MetabaseConfig => {
const baseURL = process.env.METABASE_BASE_URL;
export const validateConfig = (): MetabaseConfig => {
const baseURL = process.env.METABASE_URL_EXT;
const apiKey = process.env.METABASE_API_KEY;

const METABASE_TIMEOUT = 30_000;
const METABASE_MAX_RETRIES = 3;

assert(baseURL, "Missing environment variable 'METABASE_BASE_URL'");
assert(baseURL, "Missing environment variable 'METABASE_URL_EXT'");
assert(apiKey, "Missing environment variable 'METABASE_API_KEY'");

return {
Expand Down

0 comments on commit 0dcdad4

Please sign in to comment.