misc updates for filter and languages

This commit is contained in:
2022-05-17 09:56:42 +01:00
parent 477ce9c1e3
commit cba9446837
7 changed files with 102 additions and 22 deletions
+13 -2
View File
@@ -2,6 +2,7 @@ import axios from "axios";
import https from "https";
import CryptoJS from "crypto-js";
import HmacSHA256 from "crypto-js/hmac-sha256";
import { getFormCollection } from "../components/utils";
let BASE_URL;
const port = parseInt(process.env.PORT, 10) || 3000;
@@ -570,6 +571,13 @@ export const getAppealID = (
updateFormCollection,
primaryAttribute
) => {
console.log(
"is this the collection?:",
getFormCollection(updateFormCollection)
);
let formCollectionName = getFormCollection(updateFormCollection);
console.log(formCollectionName);
return axios
.get(
"/api/endpoint/getappealid_api?updateFormCollection=" +
@@ -580,8 +588,11 @@ export const getAppealID = (
caseReference
)
.then((res) => {
console.log(res.data);
var appealID = res.data.value[0][primaryAttribute];
const result = Object.entries(res.data.value[0]).filter(
([key]) => !key.startsWith("_")
)[0][1];
var appealID = result;
return appealID;
})
.catch((error) => {