reps for dns

This commit is contained in:
2024-05-23 18:02:56 +01:00
parent 8fad2208f6
commit 30ee6f02d7
6 changed files with 103 additions and 32 deletions
@@ -15,18 +15,19 @@ ApiProxy.get(async (req, res) => {
var tempCaseRef = req.query.tempcaseref;
var filename = req.query.repid;
console.log(
"/////Create Rep complete Message:\n",
tempCaseRef,
"\n//////////////"
);
// console.log(hashAPIPath(checkquerypath), checkHash);
// console.log(hashAPIPath(checkquerypath) == "&hash=" + checkHash);
//if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) {
await createRepCompleteMessage(containerName, tempCaseRef, filename).then(
(data) => {
console.log(
"/////Create Rep complete Message:\n" + tempCaseRef,
"\n" + "insertedOn:" + data.insertedOn,
"\n" + "messageId:" + data.messageId,
"\n" + "response.status:" + data._response.status,
"\n//////////////"
);
return res.status(200).json(data);
}
);
+6
View File
@@ -150,6 +150,9 @@ export default async function handler(req, res) {
case "Written statement":
return writtenStatement_pdf(values, values.docProps.locale);
break;
case "Impact":
return statement_pdf(values, values.docProps.locale);
break;
case "Other":
return other_pdf(values, values.docProps.locale);
break;
@@ -200,6 +203,9 @@ export default async function handler(req, res) {
case "Final comments":
repType = "Comments";
break;
case "Local Impact Report":
repType = "Impact";
break;
case "Other":
repType = "OTHER";