Skip to content

Commit

Permalink
Merge pull request #160 from shikshalokam/master
Browse files Browse the repository at this point in the history
envVariables bug fix
  • Loading branch information
aks30 authored Feb 23, 2023
2 parents c207720 + f9f385e commit 84aa82e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions envVariables.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 84aa82e

Please sign in to comment.