Skip to content

Commit

Permalink
fix: incorrect require location
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Oct 8, 2023
1 parent 7d60ee1 commit 4cb1391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/FHIRApiService/services/search.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function isValidHttpUrl(str) {
}

function isReferenceTypeSearchParameter(resourceType, parameter) {
let parameterList = require("../../api_generator/FHIRParametersClean.json");
let parameterList = require("@root/api_generator/FHIRParametersClean.json");
let resourceParameterObj = _.get(parameterList, resourceType);
let parameterObj = resourceParameterObj.find(
(v) => v.parameter == parameter
Expand All @@ -140,7 +140,7 @@ function isReferenceTypeSearchParameter(resourceType, parameter) {
}

function getResourceSupportIncludeParams(resourceType) {
let parameterList = require("../../api_generator/FHIRParametersClean.json");
let parameterList = require("@root/api_generator/FHIRParametersClean.json");
let resourceParameterObj = _.get(parameterList, resourceType);
let referenceParams = resourceParameterObj.reduce((prev, current) => {
if (current.type === "reference") prev.push(current.parameter);
Expand Down

0 comments on commit 4cb1391

Please sign in to comment.