From b6e502acafd9bd42c2f034c1b3dfc27f1a88e45a Mon Sep 17 00:00:00 2001 From: Courtney Myers Date: Wed, 11 Sep 2024 14:48:04 -0400 Subject: [PATCH] Update helpdesk form submission actions query to get all actions on a form submission (not just the latest 10) --- app/server/app/routes/help.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/server/app/routes/help.js b/app/server/app/routes/help.js index d8f6b390..ed437517 100644 --- a/app/server/app/routes/help.js +++ b/app/server/app/routes/help.js @@ -230,8 +230,15 @@ router.get("/formio/actions/:formId/:mongoId", (req, res) => { return res.status(errorStatus).json({ message: errorMessage }); } + const submissionActionsUrl = + `${formioProjectUrl}/action` + + `?form=${formId}` + + `&submission=${mongoId}` + + `&sort=-modified` + + `&limit=1000000`; + axiosFormio(req) - .get(`${formioProjectUrl}/action?form=${formId}&submission=${mongoId}`) + .get(submissionActionsUrl) .then((axiosRes) => axiosRes.data) .then((actions) => res.json(actions)) .catch((error) => {