refactor phase 3a api-file chunk 1 targeted actions imports
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user