Skip to content

Commit

Permalink
Merge pull request #419 from USEPA/feature/update-formio-endpoints
Browse files Browse the repository at this point in the history
Feature/update formio endpoints
  • Loading branch information
courtneymyers authored Apr 12, 2024
2 parents 7986944 + 682120c commit 44310b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/server/app/utilities/formio.js
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ function updateFRFSubmission({ rebateYear, req, res }) {

// NOTE: included to support EPA API scan
if (mongoId === formioExampleMongoId) {
return res.json(formioNoUserAccess);
return res.json({});
}

const comboKeyFieldName = getComboKeyFieldName({ rebateYear });
Expand Down Expand Up @@ -917,7 +917,7 @@ function fetchPRFSubmission({ rebateYear, req, res }) {
.then((axiosResponses) => axiosResponses.map((axiosRes) => axiosRes.data))
.then(([submissions, schema]) => {
if (submissions.length === 0) {
return res.json(noUserAccess);
return res.json(formioNoUserAccess);
}

const submission = submissions[0];
Expand Down

0 comments on commit 44310b0

Please sign in to comment.