@yomotech/view-toolkit 0.0.31 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2704,7 +2704,7 @@ class Couchdb {
|
|
|
2704
2704
|
};
|
|
2705
2705
|
}
|
|
2706
2706
|
else {
|
|
2707
|
-
if (
|
|
2707
|
+
if (tenantName || !selectedTenant) {
|
|
2708
2708
|
throw new Error('Missing tenantName');
|
|
2709
2709
|
}
|
|
2710
2710
|
return {
|
|
@@ -2767,12 +2767,9 @@ class ConfigService {
|
|
|
2767
2767
|
tenantName = await this.utilityService.getStorage('tenantName');
|
|
2768
2768
|
}
|
|
2769
2769
|
if (tenantName) {
|
|
2770
|
-
console.log('tenantName-44: ', tenantName);
|
|
2771
|
-
console.log('projectName-55: ', projectName);
|
|
2772
2770
|
this.config = await this.couchdbService.getFileContentFromCouchDb(`${tenantName}_${projectName}`, 'environments/environment.json');
|
|
2773
2771
|
}
|
|
2774
2772
|
else {
|
|
2775
|
-
console.log('projectName--66: ', projectName);
|
|
2776
2773
|
this.config = await this.couchdbService.getFileContentFromCouchDb(`${projectName}`, 'environments/environment.json');
|
|
2777
2774
|
}
|
|
2778
2775
|
if (this.platform.ANDROID || this.platform.IOS) {
|
|
@@ -2831,12 +2828,9 @@ class ConfigService {
|
|
|
2831
2828
|
}
|
|
2832
2829
|
let env = {};
|
|
2833
2830
|
if (tenantName) {
|
|
2834
|
-
console.log('tenantName-11: ', tenantName);
|
|
2835
|
-
console.log('projectName-22: ', projectName);
|
|
2836
2831
|
env = await this.couchdbService.getFileContentFromCouchDb(`${tenantName}_${projectName}`, 'environments/environment.json');
|
|
2837
2832
|
}
|
|
2838
2833
|
else {
|
|
2839
|
-
console.log('projectName--33: ', projectName);
|
|
2840
2834
|
env = await this.couchdbService.getFileContentFromCouchDb(`${projectName}`, 'environments/environment.json');
|
|
2841
2835
|
}
|
|
2842
2836
|
if (env?.environment?.login.type === "keycloak") {
|