diff --git a/helpers/functions.api.d.ts b/helpers/functions.api.d.ts index d5f58abc..1440191d 100644 --- a/helpers/functions.api.d.ts +++ b/helpers/functions.api.d.ts @@ -1,3 +1,4 @@ +import './polyfills.js'; import type * as recordTypes from '../types/recordTypes'; export declare function regenerateApiKey(userName: string): Promise; export declare function getApiKey(userName: string): Promise; diff --git a/helpers/functions.api.js b/helpers/functions.api.js index 1ebb75f3..62576861 100644 --- a/helpers/functions.api.js +++ b/helpers/functions.api.js @@ -1,3 +1,4 @@ +import './polyfills.js'; import fs from 'node:fs/promises'; import { v4 as uuidv4 } from 'uuid'; import Debug from 'debug'; diff --git a/helpers/functions.api.ts b/helpers/functions.api.ts index 6d8721af..82de8605 100644 --- a/helpers/functions.api.ts +++ b/helpers/functions.api.ts @@ -1,4 +1,4 @@ -// import { applyPolyfills } from './polyfills.js' +import './polyfills.js' import fs from 'node:fs/promises' import { v4 as uuidv4 } from 'uuid' @@ -9,8 +9,6 @@ import type * as recordTypes from '../types/recordTypes' const debug = Debug('lot-occupancy-system:functions.api') -// applyPolyfills() - const apiKeyPath = 'data/apiKeys.json' let apiKeys: Record