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 {
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue