Skip to content

Commit

Permalink
DB Creation fix (#331)
Browse files Browse the repository at this point in the history
Co-authored-by: fzhao99 <[email protected]>
Co-authored-by: Katie Campbell Downie <[email protected]>
  • Loading branch information
3 people authored Feb 5, 2025
1 parent 46eceb2 commit 8dbcc16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions query-connector/src/app/backend/dbCreation/db-creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,7 @@ function readJsonFromRelativePath(filename: string) {
try {
// Re-scope file system reads to make sure we use the relative
// path via node directory resolution
const runtimeServerPath = path.resolve(
path.join(__dirname, "/", "..", "/", "assets", "/", filename),
);
const runtimeServerPath = path.join(__dirname, "../../assets/", filename);
const data = fs.readFileSync(runtimeServerPath, "utf-8");
return data;
} catch (error) {
Expand Down
4 changes: 2 additions & 2 deletions query-connector/src/app/shared/database-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
DibbsValueSet,
FhirServerConfig,
CustomUserQuery,
} from "../shared/constants";
} from "./constants";
import { encode } from "base-64";
import {
CategoryToConditionArrayMap,
Expand All @@ -33,7 +33,7 @@ import {
updateNewbornScreeningCategorySql,
ValuesetStruct,
ValuesetToConceptStruct,
} from "../shared/seedSqlStructs";
} from "./seedSqlStructs";
import { getDbClient } from "../backend/dbClient";

const getQuerybyNameSQL = `
Expand Down

0 comments on commit 8dbcc16

Please sign in to comment.