Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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
5 changes: 4 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,6 @@ production.env
sandbox.env

config.ts
.bluebutton-config.json
.bluebutton-config.json
# Snyk Security Extension - AI Rules (auto-generated)
.github/instructions/snyk_rules.instructions.md
52 changes: 52 additions & 0 deletions package-lock.json
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, but should this be gitignored or removed from this changeset? Was this change only generated because we installed from the local sdk?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that can definitely be removed. This may have been in part because I had been trying to get yarn to work right between this and the SDK

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bwang-icf should this block be removed? Just given the checks that were called out below, or are we good to ignore those?

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
Loading