From 682120cc0816138a6bd6baf84625a61f13547a2e Mon Sep 17 00:00:00 2001 From: Courtney Myers Date: Fri, 12 Apr 2024 17:51:53 -0400 Subject: [PATCH] Update returned data in updateFRFSubmission when app scan mongo Id is passed to reflect expected shape of returned data, and fix typo in renaming formioNoUserAccess variable in recent commit --- app/server/app/utilities/formio.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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];