From 25fbc98d146cb6141ad9ee194bc9c398dbaf1db3 Mon Sep 17 00:00:00 2001 From: Joshua Garde Date: Sun, 6 Aug 2023 18:52:47 -0700 Subject: [PATCH] Debugging --- lib/utilities.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;