Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutugiii committed Nov 13, 2024
1 parent bb66926 commit d36ee7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/configuration/configuration.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ),
{
Expand Down
2 changes: 2 additions & 0 deletions src/app/shared/couchdb.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
}
Expand Down

0 comments on commit d36ee7b

Please sign in to comment.