Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules

# build trash
server/dist
server/node-sdk

# testing
coverage
Expand All @@ -29,4 +30,9 @@ production.env
sandbox.env

config.ts
.bluebutton-config.json
.bluebutton-config.json
package-lock.json
yarn.lock

# Snyk Security Extension - AI Rules (auto-generated)
.github/instructions/snyk_rules.instructions.md
8 changes: 6 additions & 2 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,18 @@
// access token can expire, SDK automatically refresh access token when that happens.
const eobResults = await bb.getExplanationOfBenefitData(authToken);
authToken = eobResults.token; // in case authToken got refreshed during fhir call

loggedInUser.authToken = authToken;

loggedInUser.eobData = eobResults.response?.data;
} catch (e) {
} catch (e: any) {
loggedInUser.eobData = {};
process.stdout.write(ERR_QUERY_EOB + '\n');
process.stderr.write("Exception: " + String(e) + '\n');
if (e.response) {
console.log("Error status:", e.response.status);

Check warning on line 93 in server/index.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
console.log("Error data:", e.response.data);

Check warning on line 94 in server/index.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
}
}
} else {
clearBB2Data();
Expand Down