diff --git a/src/app/configuration/configuration.component.ts b/src/app/configuration/configuration.component.ts index 0d1ac18e54..822b8034ff 100644 --- a/src/app/configuration/configuration.component.ts +++ b/src/app/configuration/configuration.component.ts @@ -188,6 +188,8 @@ export class ConfigurationComponent implements OnInit { getNationList() { console.log(this.configurationFormGroup.get('devNation').value); + console.log(this.configurationFormGroup.get('devNation').value === 'true' ? 'http' : environment.centerProtocol); + this.couchService.post('communityregistrationrequests/_find', findDocuments({ 'planetType': 'nation', 'registrationRequest': 'accepted' }, 0 ), { diff --git a/src/app/shared/couchdb.service.ts b/src/app/shared/couchdb.service.ts index 7ccb6de195..d3746a80b0 100644 --- a/src/app/shared/couchdb.service.ts +++ b/src/app/shared/couchdb.service.ts @@ -20,6 +20,8 @@ export class CouchService { datePlaceholder = new DatePlaceholder(); private setOpts(opts: any = {}) { + console.log(opts); + const { domain, protocol, ...httpOpts } = opts; return [ domain, protocol, Object.assign({}, this.defaultOpts, httpOpts) || this.defaultOpts ]; }