Skip to content

Commit

Permalink
refs #74 - update
Browse files Browse the repository at this point in the history
  • Loading branch information
TiagoV-PDMFC committed Apr 22, 2022
1 parent 6911011 commit f5120ce
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions fgt-api/server-heml.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,13 @@ if (!ROLE){
process.exit(0);
}

console.log(`ENVIRONMENT VARIABLES: ROLE: ${ROLE}, CREDENTIALS_FILE: ${CREDENTIALS_FILE} and SWAGGER_SERVER: ${SWAGGER_SERVER}`)
console.log(`ENVIRONMENT VARIABLES: ROLE: ${ROLE}, and SWAGGER_SERVER: ${SWAGGER_SERVER}`)

function failServerBoot(reason){
console.error("Server boot failed: " + reason);
process.exit(1);
}

function getWallet(){
switch (ROLE){
case "mah":
return "mah";
case "whs":
return 'wholesaler';
case "pha":
return "pharmacy";
default:
return ROLE;
}
}

async function bootAPIServer(){
require(path.join(currentPath, "participants", ROLE, "index.js"));
}
Expand Down

0 comments on commit f5120ce

Please sign in to comment.