From fe85a596ff8200187fcdc73f3cbd2249f476171b Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Thu, 16 Jun 2022 19:06:30 +0200 Subject: [PATCH] [CST-5339] include OrcidAuthService in core.module --- src/app/core/core.module.ts | 2 ++ src/app/core/orcid/orcid-auth.service.ts | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/core/core.module.ts b/src/app/core/core.module.ts index 90e326a4df..b16930e819 100644 --- a/src/app/core/core.module.ts +++ b/src/app/core/core.module.ts @@ -177,6 +177,7 @@ import { OrcidQueueService } from './orcid/orcid-queue.service'; import { OrcidHistoryDataService } from './orcid/orcid-history-data.service'; import { OrcidQueue } from './orcid/model/orcid-queue.model'; import { OrcidHistory } from './orcid/model/orcid-history.model'; +import { OrcidAuthService } from './orcid/orcid-auth.service'; /** * When not in production, endpoint responses can be mocked for testing purposes @@ -305,6 +306,7 @@ const PROVIDERS = [ FeedbackDataService, ResearcherProfileService, ProfileClaimService, + OrcidAuthService, OrcidQueueService, OrcidHistoryDataService, ]; diff --git a/src/app/core/orcid/orcid-auth.service.ts b/src/app/core/orcid/orcid-auth.service.ts index 7b85dccd9c..cf7bc2b259 100644 --- a/src/app/core/orcid/orcid-auth.service.ts +++ b/src/app/core/orcid/orcid-auth.service.ts @@ -16,9 +16,7 @@ import { ResearcherProfile } from '../profile/model/researcher-profile.model'; import { URLCombiner } from '../url-combiner/url-combiner'; import { NativeWindowRef, NativeWindowService } from '../services/window.service'; -@Injectable({ - providedIn: 'root' -}) +@Injectable() export class OrcidAuthService { constructor(