improve api service configuration (#5759)

This commit is contained in:
Eugenio Romano 2020-06-08 07:24:28 +01:00 committed by GitHub
parent cafedf29f6
commit ffcd16aeaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,8 +46,8 @@ export class ApiService {
if (clientIdOrAppConfig && typeof clientIdOrAppConfig !== 'string') {
this.config = { ...this.config, ...clientIdOrAppConfig };
this.config.hostEcm = clientIdOrAppConfig.hostEcm ? clientIdOrAppConfig.hostEcm : browser.params.testConfig.appConfig.ecmHost;
this.config.hostBpm = clientIdOrAppConfig.hostBpm ? clientIdOrAppConfig.hostBpm : browser.params.testConfig.appConfig.bpmHost;
this.config.hostEcm = clientIdOrAppConfig.hostEcm ? clientIdOrAppConfig.hostEcm : this.config.hostEcm;
this.config.hostBpm = clientIdOrAppConfig.hostBpm ? clientIdOrAppConfig.hostBpm : this.config.hostBpm;
} else if (clientIdOrAppConfig && typeof clientIdOrAppConfig === 'string') {
this.config.oauth2.clientId = clientIdOrAppConfig;
}