misc updates for filter and languages
This commit is contained in:
+13
-2
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user