uat defect 93
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
|||||||
createBlob,
|
createBlob,
|
||||||
getCaseBlob,
|
getCaseBlob,
|
||||||
} from "../../../actions/azurestorage";
|
} from "../../../actions/azurestorage";
|
||||||
|
import _ from "lodash";
|
||||||
|
|
||||||
import nextConnect from "next-connect";
|
import nextConnect from "next-connect";
|
||||||
import middleware from "../middleware/middleware";
|
import middleware from "../middleware/middleware";
|
||||||
@@ -53,10 +54,28 @@ ApiProxy.get(async (req, res) => {
|
|||||||
await createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef)
|
await createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
//update case.json with lpa ref and description
|
//update case.json with lpa ref and description
|
||||||
|
|
||||||
|
let combinedAddress =
|
||||||
|
blobProgress.pinswg_siteaddressline1 +
|
||||||
|
(!_.isEmpty(blobProgress.pinswg_siteaddressline2)
|
||||||
|
? ", " + blobProgress.pinswg_siteaddressline2
|
||||||
|
: "") +
|
||||||
|
(!_.isEmpty(blobProgress.pinswg_siteaddresstown)
|
||||||
|
? ", " + blobProgress.pinswg_siteaddresstown
|
||||||
|
: "");
|
||||||
|
|
||||||
|
combinedAddress =
|
||||||
|
combinedAddress +
|
||||||
|
", " +
|
||||||
|
blobProgress.pinswg_siteaddresscounty +
|
||||||
|
", " +
|
||||||
|
blobProgress.pinswg_siteaddresspostcode;
|
||||||
|
|
||||||
Object.assign(caseObj, {
|
Object.assign(caseObj, {
|
||||||
"pinswg_lpareference":
|
"pinswg_lpareference":
|
||||||
blobProgress.pinswg_lpaapplicationreference,
|
blobProgress.pinswg_lpaapplicationreference,
|
||||||
"description": blobProgress.pinswg_developmentdescription,
|
"description": blobProgress.pinswg_developmentdescription,
|
||||||
|
"pinswg_caseaddress": combinedAddress,
|
||||||
});
|
});
|
||||||
|
|
||||||
//send update case.json and then create queue message
|
//send update case.json and then create queue message
|
||||||
|
|||||||
Reference in New Issue
Block a user