From f5120cea26904b9625d89d6f9b74cb59854627da Mon Sep 17 00:00:00 2001 From: Tiago PDM Date: Fri, 22 Apr 2022 10:31:33 +0100 Subject: [PATCH] refs #74 - update --- fgt-api/server-heml.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/fgt-api/server-heml.js b/fgt-api/server-heml.js index b9e8db7a..3285ca7b 100644 --- a/fgt-api/server-heml.js +++ b/fgt-api/server-heml.js @@ -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")); }