From de9b823f188c893659580288b61240122b602d94 Mon Sep 17 00:00:00 2001 From: Chad Huntley Date: Wed, 5 Jul 2023 23:15:05 -0700 Subject: [PATCH] Fixed CDC table loading --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 0122aa8..9f755d7 100644 --- a/index.js +++ b/index.js @@ -192,7 +192,7 @@ function buildTablesObject(includeCdc = false) { 'bmifa_boys_2_20', 'bmifa_girls_2_20']; - const getCdcFilePath = tableName => `./tables/${tableName}_zscores.cdc.json`; + const getCdcFilePath = tableName => `${__dirname}/tables/${tableName}_zscores.cdc.json`; const loadCdcFiles = R.pipe(getCdcFilePath, R.pipeP(fs.readFile, JSON.parse)); return Promise.all(R.map(loadCdcFiles, cdcTableNames)) .then(R.map(reIndex))