From f3c14578dad7dae000ed0436e833859286010598 Mon Sep 17 00:00:00 2001 From: Spencer Ofwiti Date: Mon, 15 Mar 2021 08:53:33 +0300 Subject: [PATCH] Remove circular dependency. --- src/app/_helpers/global-error-handler.ts | 5 ++--- src/app/_services/location.service.ts | 2 +- src/environments/environment.ts | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/_helpers/global-error-handler.ts b/src/app/_helpers/global-error-handler.ts index 3446823..5d440f9 100644 --- a/src/app/_helpers/global-error-handler.ts +++ b/src/app/_helpers/global-error-handler.ts @@ -1,13 +1,12 @@ import {ErrorHandler, Injectable} from '@angular/core'; -import {LoggingService} from '@app/_services'; +import {LoggingService} from '@app/_services/logging.service'; import {HttpErrorResponse} from '@angular/common/http'; @Injectable() export class GlobalErrorHandler extends ErrorHandler { private sentencesForWarningLogging: string[] = []; - private loggingService: LoggingService; - constructor() { + constructor(private loggingService: LoggingService) { super(); } diff --git a/src/app/_services/location.service.ts b/src/app/_services/location.service.ts index 9491332..cd163dc 100644 --- a/src/app/_services/location.service.ts +++ b/src/app/_services/location.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core'; import {BehaviorSubject} from 'rxjs'; import {environment} from '@src/environments/environment'; import {first} from 'rxjs/operators'; -import {HttpWrapperService} from '@app/_services/'; +import {HttpWrapperService} from '@app/_services/http-wrapper.service'; @Injectable({ providedIn: 'root' diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 669a06c..95fe366 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -10,7 +10,7 @@ export const environment = { level: NgxLoggerLevel.TRACE, serverLogLevel: NgxLoggerLevel.ERROR, loggingUrl: 'http://localhost:8000', - cicAuthUrl: 'https://meta.dev.grassrootseconomics.net', + cicAuthUrl: 'http://localhost:8080', cicMetaUrl: 'http://localhost:63380', publicKeysUrl: 'http://localhost:8000', cicCacheUrl: 'http://localhost:63313',