uat defect 93
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
createBlob,
|
||||
getCaseBlob,
|
||||
} from "../../../actions/azurestorage";
|
||||
import _ from "lodash";
|
||||
|
||||
import nextConnect from "next-connect";
|
||||
import middleware from "../middleware/middleware";
|
||||
@@ -53,10 +54,28 @@ ApiProxy.get(async (req, res) => {
|
||||
await createBlob(JSON.stringify(blobProgress), containerName, tempCaseRef)
|
||||
.then(() => {
|
||||
//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, {
|
||||
"pinswg_lpareference":
|
||||
blobProgress.pinswg_lpaapplicationreference,
|
||||
"description": blobProgress.pinswg_developmentdescription,
|
||||
"pinswg_caseaddress": combinedAddress,
|
||||
});
|
||||
|
||||
//send update case.json and then create queue message
|
||||
|
||||
Reference in New Issue
Block a user