TASK22057: phase18 additional consolidation slices
This commit is contained in:
@@ -36,6 +36,19 @@ export default async function ApiProxy(req, res) {
|
||||
var token = await getToken();
|
||||
var tempCaseRef = getTempCaseRef();
|
||||
|
||||
if (
|
||||
typeof contactid === "undefined" ||
|
||||
contactid.length === 0 ||
|
||||
typeof appealTypeId === "undefined" ||
|
||||
appealTypeId.length === 0 ||
|
||||
typeof containerName === "undefined" ||
|
||||
containerName.length === 0 ||
|
||||
typeof lpaID === "undefined" ||
|
||||
lpaID.length === 0
|
||||
) {
|
||||
return res.status(400).json();
|
||||
}
|
||||
|
||||
var data = {
|
||||
"title": tempCaseRef,
|
||||
"ticketnumber": tempCaseRef,
|
||||
@@ -53,8 +66,6 @@ export default async function ApiProxy(req, res) {
|
||||
delete newData.lpaTypes;
|
||||
delete newData.appealTypes;
|
||||
|
||||
console.log("/////Create Case:\n", newData, "\n//////////////");
|
||||
|
||||
var newAppealObj = {
|
||||
"pinswg_name": tempCaseRef,
|
||||
"pinswg_appealcasetype": appealTypeId,
|
||||
|
||||
Reference in New Issue
Block a user