File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -102,19 +102,21 @@ const transform = () => {
102102    } ) ; 
103103  } 
104104
105-   if ( collection . collection . auth  &&  collection . collection . auth . oauth2 ) { 
106-       collection . collection . auth . oauth2 . push [ { 
107-           "key" : "clientSecret" , 
108-           "value" : "{{vault:mongodb-private-clientsecret}}" , 
109-           "type" : "string" 
105+   if  ( collection . collection . auth  &&  collection . collection . auth . oauth2 )  { 
106+     collection . collection . auth . oauth2 . push [ 
107+       ( { 
108+         key : 'clientSecret' , 
109+         value : '{{vault:mongodb-private-clientsecret}}' , 
110+         type : 'string' , 
110111      } , 
111112      { 
112-           "key" : "clientId" , 
113-           "value" : "{{vault:mongodb-public-clientid}}" , 
114-           "type" : "string" 
115-       } ] 
113+         key : 'clientId' , 
114+         value : '{{vault:mongodb-public-clientid}}' , 
115+         type : 'string' , 
116+       } ) 
117+     ] ; 
116118  }  else  { 
117-        throw  " Failed to add required authentication variables" 
119+     throw  ' Failed to add required authentication variables' ; 
118120  } 
119121
120122  saveJsonFile ( path . join ( TMP_FOLDER ,  COLLECTION_TRANSFORMED_FILE_NAME ) ,  collection ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments