diff --git a/app/server/app/utilities/formio.js b/app/server/app/utilities/formio.js index 602265c9..4e9340d2 100644 --- a/app/server/app/utilities/formio.js +++ b/app/server/app/utilities/formio.js @@ -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 }); @@ -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];