added proxy updting case to avoid cors and be SSR

This commit is contained in:
robert.bond@test.gov.wales
2021-09-14 14:36:26 +01:00
parent 855b8b1bd9
commit 1a1ad02fcf
4 changed files with 117 additions and 28 deletions
+4
View File
@@ -33,6 +33,10 @@ let CompleteAppeal = (props) => {
let incidentId = props.appealType.caseReference.incidentid;
let updateBody = props.props.form.appealForm.values;
Object.assign(updateBody, {
"pinswg_name": props.appealType.caseReference.ticketnumber,
});
updateBody = JSON.stringify(updateBody);
updateBody = updateBody.replace(/:"Yes"/gm, `:true`);