diff --git a/lib/utilities.js b/lib/utilities.js index 3bf2d1b..b5868c1 100644 --- a/lib/utilities.js +++ b/lib/utilities.js @@ -37,10 +37,10 @@ export default class Utilities { * Initializes the Utilities class's required services */ async init() { + this.#setupLogger(); await this.#loadSSMParameters(); await this.#setupDatabase(); await this.#preloadSchemas(); - this.#setupLogger(); } /** @@ -48,11 +48,12 @@ export default class Utilities { * cross-reference use of schemas via ajv's resolution */ async #preloadSchemas() { + console.log(import.meta.url) const schemaPath = path.resolve( import.meta.url.replace(/^file:/, ''), '../../schemas', ); - const schemaDir = await fs.opendir(schemaPath); + const schemaDir = await fs.opendir('./schemas'); for await (const entry of schemaDir) { if (!entry.isFile()) { continue;