Skip to content

Commit

Permalink
Merge pull request #340 from hmcts/cos-url-config
Browse files Browse the repository at this point in the history
Cos url config
  • Loading branch information
yogendraU authored Jul 22, 2024
2 parents 1a7fe41 + 28953eb commit fb61986
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/custom-environment-variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ services:
clientSecret: IDAM_SECRET
case:
url: CCD_URL
cos:
url: FIS_COS_API
payments:
url: PAYMENTS_API_URL
feeLookup:
Expand Down
3 changes: 3 additions & 0 deletions src/main/app/case/CaseApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
YesOrNo,
} from './definition';
import { toApiDate, toApiFormat } from './to-api-format';
import { log } from 'console';

export class CaseApi {
/**
Expand Down Expand Up @@ -124,6 +125,8 @@ export class CaseApi {
* @returns
*/
public async createCaseNew(req: AppRequest): Promise<any> {
this.logger.info('services.cos.url');
this.logger.info(config.get('services.cos.url'));
const data = {
edgeCaseTypeOfApplication: req.session.userCase.typeOfApplication,
caseTypeOfApplication: [TYPE_OF_APPLICATION.FGM, TYPE_OF_APPLICATION.FMPO].includes(
Expand Down

0 comments on commit fb61986

Please sign in to comment.