updated enforcement listed building using pinswg_startdates
This commit is contained in:
@@ -844,6 +844,26 @@ export const downloadProgressFile = async (
|
|||||||
return JSON.parse(downloaded.toString());
|
return JSON.parse(downloaded.toString());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const downloadCaseFile = async (
|
||||||
|
containerName,
|
||||||
|
blobName,
|
||||||
|
casefolderID
|
||||||
|
) => {
|
||||||
|
console.log(containerName, blobName);
|
||||||
|
|
||||||
|
const containerToken = await createContainerSas(containerName);
|
||||||
|
const sasUrl = `${STORAGE_PATH}/${containerName}?${containerToken}`;
|
||||||
|
const containerClient = new ContainerClient(sasUrl);
|
||||||
|
const blobClient = containerClient.getBlobClient(blobName);
|
||||||
|
const downloadedBlob = await blobClient.download();
|
||||||
|
|
||||||
|
const downloaded = await streamToBuffer(downloadedBlob.readableStreamBody);
|
||||||
|
|
||||||
|
//console.log("Downloaded blob content:", downloaded.toString());
|
||||||
|
|
||||||
|
return JSON.parse(downloaded.toString());
|
||||||
|
};
|
||||||
|
|
||||||
export const downloadAllProgressFiles = async (
|
export const downloadAllProgressFiles = async (
|
||||||
containerName,
|
containerName,
|
||||||
progressBlobObj
|
progressBlobObj
|
||||||
|
|||||||
@@ -31,8 +31,10 @@ const RegisterComplete = (props) => {
|
|||||||
let accountBody = props.props.props.form.accountRegisterForm.values;
|
let accountBody = props.props.props.form.accountRegisterForm.values;
|
||||||
let emailAddress =
|
let emailAddress =
|
||||||
props.props.props.form.accountRegisterForm.values.emailaddress1;
|
props.props.props.form.accountRegisterForm.values.emailaddress1;
|
||||||
|
|
||||||
|
// was an appellant "pinswg_typeofinvolvement": 846040001,
|
||||||
Object.assign(accountBody, {
|
Object.assign(accountBody, {
|
||||||
"pinswg_typeofinvolvement": 846040001,
|
"pinswg_typeofinvolvement": 846040061,
|
||||||
});
|
});
|
||||||
|
|
||||||
accountBody = _.omit(accountBody, ["custom_password_check"]);
|
accountBody = _.omit(accountBody, ["custom_password_check"]);
|
||||||
|
|||||||
@@ -283,7 +283,9 @@ let MakeRepresentation = (props) => {
|
|||||||
detailsObj.pinswg_endofrepresentationperiod
|
detailsObj.pinswg_endofrepresentationperiod
|
||||||
).setHours(23, 59, 59, 999)
|
).setHours(23, 59, 59, 999)
|
||||||
)))
|
)))
|
||||||
: ((startDate = new Date(detailsObj.pinswg_startdate)),
|
: ((startDate = new Date(
|
||||||
|
detailsObj.pinswg_startdate || detailsObj.pinswg_startdates
|
||||||
|
)),
|
||||||
(questionnaireDate = new Date(
|
(questionnaireDate = new Date(
|
||||||
new Date(detailsObj.pinswg_questionnaireduedate).setHours(
|
new Date(detailsObj.pinswg_questionnaireduedate).setHours(
|
||||||
23,
|
23,
|
||||||
|
|||||||
@@ -422,9 +422,14 @@ const CaseSummary = (props) => {
|
|||||||
_.has(
|
_.has(
|
||||||
detailsObj,
|
detailsObj,
|
||||||
"pinswg_applicationacceptedasvalid"
|
"pinswg_applicationacceptedasvalid"
|
||||||
|
) ||
|
||||||
|
_.has(
|
||||||
|
detailsObj,
|
||||||
|
"pinswg_startdates"
|
||||||
)) &&
|
)) &&
|
||||||
showReps(
|
showReps(
|
||||||
detailsObj.pinswg_startdate ||
|
detailsObj.pinswg_startdate ||
|
||||||
|
detailsObj.pinswg_startdates ||
|
||||||
detailsObj.pinswg_applicationacceptedasvalid,
|
detailsObj.pinswg_applicationacceptedasvalid,
|
||||||
detailsObj.pinswg_finalcommentsduedate ||
|
detailsObj.pinswg_finalcommentsduedate ||
|
||||||
detailsObj.pinswg_endofrepresentationperiod
|
detailsObj.pinswg_endofrepresentationperiod
|
||||||
|
|||||||
@@ -110,9 +110,9 @@ export default function AccessibilityCY() {
|
|||||||
Ffoniwch:{" "}
|
Ffoniwch:{" "}
|
||||||
<a
|
<a
|
||||||
className="govuk-link govuk-link--no-underline govuk-!-font-weight-bold"
|
className="govuk-link govuk-link--no-underline govuk-!-font-weight-bold"
|
||||||
href="tel:03000 604400"
|
href="tel:0300 123 1590"
|
||||||
>
|
>
|
||||||
03000 604400
|
0300 123 1590
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -105,9 +105,9 @@ export default function AccessibilityEN() {
|
|||||||
Call:{" "}
|
Call:{" "}
|
||||||
<a
|
<a
|
||||||
className="govuk-link govuk-link--no-underline govuk-!-font-weight-bold"
|
className="govuk-link govuk-link--no-underline govuk-!-font-weight-bold"
|
||||||
href="tel:03000 604400"
|
href="tel:0300 123 1590"
|
||||||
>
|
>
|
||||||
03000 604400
|
0300 123 1590
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user