From d55bcc93bbf0d3babb35c543eadfc49327124654 Mon Sep 17 00:00:00 2001 From: lotte Date: Tue, 9 Jul 2019 12:12:08 +0200 Subject: [PATCH] 62849: enabled mock service in prod mode --- src/app/core/core.module.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/core/core.module.ts b/src/app/core/core.module.ts index a57823fe50..3453c04af1 100644 --- a/src/app/core/core.module.ts +++ b/src/app/core/core.module.ts @@ -97,11 +97,11 @@ import { EndpointMockingRestService } from './dspace-rest-v2/endpoint-mocking-re import { ENV_CONFIG, GLOBAL_CONFIG, GlobalConfig } from '../../config'; export const restServiceFactory = (cfg: GlobalConfig, mocks: MockResponseMap, http: HttpClient) => { - if (ENV_CONFIG.production) { - return new DSpaceRESTv2Service(http); - } else { + // if (ENV_CONFIG.production) { + // return new DSpaceRESTv2Service(http); + // } else { return new EndpointMockingRestService(cfg, mocks, http); - } + // } }; const IMPORTS = [