Skip to content

Commit

Permalink
Update returned data in updateFRFSubmission when app scan mongo Id is…
Browse files Browse the repository at this point in the history
… passed to reflect expected shape of returned data, and fix typo in renaming formioNoUserAccess variable in recent commit
  • Loading branch information
courtneymyers committed Apr 12, 2024
1 parent 7986944 commit 682120c
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 682120c

Please sign in to comment.