From b77f5de68ca52c356e76773c5df1eb84c865f71f Mon Sep 17 00:00:00 2001 From: VISHNUDAS-tunerlabse Date: Thu, 23 Feb 2023 18:13:23 +0530 Subject: [PATCH] env check issue fix --- envVariables.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/envVariables.js b/envVariables.js index 307f75b3..5228d7ef 100644 --- a/envVariables.js +++ b/envVariables.js @@ -143,10 +143,7 @@ module.exports = function() { } async function getKid(){ - if ( enviromentVariables["PROJECT_CERTIFICATE_ON_OFF"] && - enviromentVariables["PROJECT_CERTIFICATE_ON_OFF"].default && - enviromentVariables["PROJECT_CERTIFICATE_ON_OFF"].default === "ON" - ) { + if ( process.env.PROJECT_CERTIFICATE_ON_OFF === "ON" ) { // get certificate issuer kid from sunbird-RC let kidData = await certificateService.getCertificateIssuerKid(); if( !kidData.success ) {