Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgarde committed Aug 7, 2023
1 parent 3613834 commit 25fbc98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,23 @@ 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();
}

/**
* Preloads all the json schemas in the schemas/ dir for later use. Enables
* cross-reference use of schemas via ajv's resolution
*/
async #preloadSchemas() {
console.log(import.meta.url)

Check failure on line 51 in lib/utilities.js

View workflow job for this annotation

GitHub Actions / build, lint, and test

Missing semicolon
const schemaPath = path.resolve(

Check failure on line 52 in lib/utilities.js

View workflow job for this annotation

GitHub Actions / build, lint, and test

'schemaPath' is assigned a value but never used
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;
Expand Down

0 comments on commit 25fbc98

Please sign in to comment.