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;
@@ -47,7 +48,7 @@ export default async function ApiProxy(req, res) {
var data = {
"@odata.id":
crmUrl + "/api/data/" + crmVersion + "/contacts(" + contactid + ")",
crmUrl + "/api/data/" + crmVersion + "/contacts(" + contactid + ")"
};
var config = {
@@ -60,9 +61,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)