Merge remote-tracking branch 'origin/feature/CSR-335' into feature/CSR-335
This commit is contained in:
commit
2e4fc5c667
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ import httpStatusCodes from "http-status-codes";
|
||||||
export default {
|
export default {
|
||||||
callHttpClient({ method, endpoint, payload }) {
|
callHttpClient({ method, endpoint, payload }) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
var apiGatewayUrl = applicationConfig.CONSUMER_APIGATEWAY_URL;
|
const apiGatewayUrl = applicationConfig.CONSUMER_APIGATEWAY_URL;
|
||||||
const payloadAndAnalyticsData = Object.assign({}, payload, {
|
const payloadAndAnalyticsData = Object.assign({}, payload, {
|
||||||
AppName: "FixMyGlass",
|
AppName: "FixMyGlass",
|
||||||
});
|
});
|
||||||
|
|
@ -19,7 +19,7 @@ export default {
|
||||||
}).then(
|
}).then(
|
||||||
(response) => {
|
(response) => {
|
||||||
if (response.status == httpStatusCodes.OK) {
|
if (response.status == httpStatusCodes.OK) {
|
||||||
if(response.data == undefined || response.data == {}) {
|
if(response.data == undefined) {
|
||||||
reject(response);
|
reject(response);
|
||||||
}else{
|
}else{
|
||||||
resolve(response);
|
resolve(response);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue