Skip to content

Commit

Permalink
Merge pull request #487 from USEPA/feature/update-helpdesk-actions-query
Browse files Browse the repository at this point in the history
Feature/update helpdesk actions query
  • Loading branch information
courtneymyers authored Sep 11, 2024
2 parents f669920 + b6e502a commit 6a8962d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/server/app/routes/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 6a8962d

Please sign in to comment.