refactor phase 3a api-file chunk 1 targeted actions imports

This commit is contained in:
2026-03-12 11:38:18 +00:00
parent 2a3c7eac34
commit 5822930f0a
6 changed files with 30 additions and 26 deletions
+5 -4
View File
@@ -12,7 +12,8 @@
import axios from "axios";
import CryptoJS from "crypto-js";
import { consoleLogger, getToken } from "../../../actions";
import { consoleLogger } from "../../../actions/core/logger";
import { getToken } from "../../../actions/core/token";
const WORDKEY = process.env.HASHKEY;
@@ -45,7 +46,7 @@ export default async function ApiProxy(req, res) {
var crmUrl = "https://" + process.env.CRMURL;
var data = {
"@odata.id": crmUrl + "/api/data/v8.2/contacts(" + contactid + ")",
"@odata.id": crmUrl + "/api/data/v8.2/contacts(" + contactid + ")"
};
var config = {
@@ -58,9 +59,9 @@ export default async function ApiProxy(req, res) {
"If-None-Match": "null",
"Prefer": 'odata.include-annotations="*",return=representation',
"Authorization": "Bearer " + token.access_token,
"Content-Type": "application/json",
"Content-Type": "application/json"
},
data: data,
data: data
};
return axios(config)