Skip to content

Commit 1837cee

Browse files
committed
fixed
1 parent 96454d1 commit 1837cee

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/store/mainStore.js

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,8 +1024,8 @@ const mainStore = {
10241024
if (!getters.getSelectedService || !getters.getSelectedService.tenantUrl) {
10251025
return reject(new Error('Tenant url is null or empty, service is not selected'))
10261026
}
1027-
// const url = `${sanitizeUrl(getters.getSelectedService.tenantUrl)}/api/v1/e-kyc/verification/webhook-config/${payload._id}`;
1028-
const url = `http://localhost:3001/api/v1/e-kyc/verification/webhook-config/${payload._id}`
1027+
const url = `${sanitizeUrl(getters.getSelectedService.tenantUrl)}/api/v1/e-kyc/verification/webhook-config/${payload._id}`;
1028+
// const url = `http://localhost:3001/api/v1/e-kyc/verification/webhook-config/${payload._id}`
10291029
const authToken = getters.getSelectedService.access_token
10301030
const headers = UtilsMixin.methods.getHeader(authToken);
10311031
fetch(url, {
@@ -1045,17 +1045,14 @@ const mainStore = {
10451045
},
10461046

10471047

1048-
1049-
1050-
10511048
fetchSessionsDetailsById: ({ commit, getters }, payload) => {
10521049
return new Promise((resolve, reject) => {
10531050
const { sessionId } = payload
10541051
if (!getters.getSelectedService || !getters.getSelectedService.tenantUrl) {
10551052
return reject(new Error('Tenant url is null or empty, service is not selected'))
10561053
}
1057-
// const url = `${sanitizeUrl(getters.getSelectedService.tenantUrl)}/api/v1/e-kyc/verification/session/${sessionId}`;
1058-
const url = `http://localhost:3001/api/v1/e-kyc/verification/session/${sessionId}`;
1054+
const url = `${sanitizeUrl(getters.getSelectedService.tenantUrl)}/api/v1/e-kyc/verification/session/${sessionId}`;
1055+
// const url = `http://localhost:3001/api/v1/e-kyc/verification/session/${sessionId}`;
10591056
const authToken = getters.getSelectedService.access_token
10601057
const headers = UtilsMixin.methods.getHeader(authToken);
10611058
fetch(url, {
@@ -1084,8 +1081,8 @@ const mainStore = {
10841081
if (!getters.getSelectedService || !getters.getSelectedService.tenantUrl) {
10851082
throw new Error('Tenant url is null or empty, service is not selected')
10861083
}
1087-
// const url = `${sanitizeUrl(getters.getSelectedService.tenantUrl)}/api/v1/usage?serviceId=${getters.getSelectedService.appId}&startDate=${startDate}&endDate=${endDate}`;
1088-
const url = `http://localhost:3001/api/v1/usage?serviceId=${getters.getSelectedService.appId}&startDate=${startDate}&endDate=${endDate}`;
1084+
const url = `${sanitizeUrl(getters.getSelectedService.tenantUrl)}/api/v1/usage?serviceId=${getters.getSelectedService.appId}&startDate=${startDate}&endDate=${endDate}`;
1085+
// const url = `http://localhost:3001/api/v1/usage?serviceId=${getters.getSelectedService.appId}&startDate=${startDate}&endDate=${endDate}`;
10891086
const authToken = getters.getSelectedService.access_token
10901087
const headers = UtilsMixin.methods.getHeader(authToken);
10911088
const resp = await fetch(url, {
@@ -1121,8 +1118,7 @@ const mainStore = {
11211118
if (!getters.getSelectedService || !getters.getSelectedService.tenantUrl) {
11221119
throw new Error('Tenant url is null or empty, service is not selected')
11231120
}
1124-
// const url = `${sanitizeUrl(getters.getSelectedService.tenantUrl)}/api/v1/usage?serviceId=${getters.getSelectedService.appId}&startDate=${startDate}&endDate=${endDate}`;
1125-
const url = `http://localhost:3001/api/v1/credit`;
1121+
const url = `${sanitizeUrl(getters.getSelectedService.tenantUrl)}/api/v1/credit`;
11261122
const authToken = getters.getSelectedService.access_token
11271123
const headers = UtilsMixin.methods.getHeader(authToken);
11281124
const resp = await fetch(url, {
@@ -1150,7 +1146,7 @@ const mainStore = {
11501146
if (!creditId) {
11511147
return reject(new Error('Credit Id is null or empty'))
11521148
}
1153-
const url = `http://localhost:3001/api/v1/credit/${creditId}/activate`;
1149+
const url = `${sanitizeUrl(getters.getSelectedService.tenantUrl)}/api/v1/credit/${creditId}/activate`;
11541150
const options = {
11551151
method: "POST",
11561152
headers: {

0 commit comments

Comments
 (0)