Skip to content

Commit

Permalink
Merge pull request #522 from USEPA/feature/update-bap-helpdesk-query
Browse files Browse the repository at this point in the history
Feature/update bap helpdesk query
  • Loading branch information
courtneymyers authored Jan 6, 2025
2 parents 4067527 + 027afbf commit 9ae4674
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/server/app/utilities/bap.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,8 @@ async function queryForBapFormSubmissionData(
.limit(1)
.execute(async (err, records) => ((await err) ? err : records));

if (formRecordTypeIdQuery.length === 0) return null;

const formRecordTypeId = formRecordTypeIdQuery["0"].Id;

// `SELECT
Expand Down Expand Up @@ -1909,7 +1911,9 @@ function verifyBapConnection(req, { name, args }) {
function callback() {
return name(...args).catch((err) => {
const logMessage = `BAP Error: ${err}.`;
log({ level: "error", message: logMessage, req });
log({ level: "error", message: logMessage, req, otherInfo: err });

// Error: Unable to refresh session due to: No refresh token found in the connection.

throw err;
});
Expand Down

0 comments on commit 9ae4674

Please sign in to comment.