Skip to content

Commit

Permalink
Update fetchFRFSubmission() to support 2024 FRF local development (NC…
Browse files Browse the repository at this point in the history
…ES API endpoint)
  • Loading branch information
courtneymyers committed Jul 30, 2024
1 parent 911b790 commit 37bcb2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/server/app/utilities/formio.js
Original file line number Diff line number Diff line change
Expand Up @@ -943,9 +943,10 @@ function fetchFRFSubmission({ rebateYear, req, res }) {
return res.json(formioNoUserAccess);
}

/** Modify 2023 FRF's NCES API endpoint URL for local development */
/** Modify 2023 and 2024 FRF's NCES API endpoint URL for local development */
const formSchemaJson =
NODE_ENV === "development" && rebateYear === "2023"
NODE_ENV === "development" &&
(rebateYear === "2023" || rebateYear === "2024")
? modifyDatasourceComponentsUrl(schema)
: schema;

Expand Down

0 comments on commit 37bcb2a

Please sign in to comment.