TASK22109: email api contract cleanup and phase21 coverage
This commit is contained in:
@@ -188,8 +188,6 @@ const buildNotifyPayloads = (watchlistByEmail) => {
|
||||
|
||||
const prefLanguage = entries[0].pinswg_preferredlanguage;
|
||||
|
||||
console.log("Language to use for email tmeplace:", prefLanguage);
|
||||
|
||||
const personalisation = {
|
||||
contact_name: contactName,
|
||||
case_sections: filteredEntries
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import axios from "axios";
|
||||
import CryptoJS from "crypto-js";
|
||||
import _ from "lodash";
|
||||
import { azureHeadersPaged } from "../../../actions/core/headers";
|
||||
import { consoleLogger } from "../../../actions/core/logger";
|
||||
import { getToken } from "../../../actions/core/token";
|
||||
@@ -67,8 +66,6 @@ export default async function ApiProxy(req, res) {
|
||||
|
||||
const fullUrl = `${WEBAPI_URL}${query}${hashAPIPath(query)}`;
|
||||
|
||||
console.log("Querying documents from:", fullUrl);
|
||||
|
||||
const { data } = await axios.get(
|
||||
fullUrl,
|
||||
azureHeadersPaged(token.access_token)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import axios from "axios";
|
||||
import CryptoJS from "crypto-js";
|
||||
import _ from "lodash";
|
||||
import { azureHeaders } from "../../../actions/core/headers";
|
||||
import { consoleLogger } from "../../../actions/core/logger";
|
||||
@@ -7,7 +6,6 @@ import { getToken } from "../../../actions/core/token";
|
||||
import { hashAPIPath } from "../../../actions/core/hash";
|
||||
import { respondError, respondSuccess } from "../middleware/apiResponse";
|
||||
|
||||
const WORDKEY = process.env.HASHKEY;
|
||||
const WEBAPI_URL =
|
||||
process.env.RELAY_ROOT ||
|
||||
"https://dev-pedw-ns.servicebus.windows.net/dev-pedw-hc/";
|
||||
|
||||
Reference in New Issue
Block a user