Merge remote-tracking branch 'origin/feature/CSR-335' into feature/CSR-335

This commit is contained in:
FrankRua 2022-03-01 13:40:26 -05:00
commit 2e4fc5c667

View file

@ -5,7 +5,7 @@ import httpStatusCodes from "http-status-codes";
export default {
callHttpClient({ method, endpoint, payload }) {
return new Promise((resolve, reject) => {
var apiGatewayUrl = applicationConfig.CONSUMER_APIGATEWAY_URL;
const apiGatewayUrl = applicationConfig.CONSUMER_APIGATEWAY_URL;
const payloadAndAnalyticsData = Object.assign({}, payload, {
AppName: "FixMyGlass",
});
@ -19,7 +19,7 @@ export default {
}).then(
(response) => {
if (response.status == httpStatusCodes.OK) {
if(response.data == undefined || response.data == {}) {
if(response.data == undefined) {
reject(response);
}else{
resolve(response);