File tree 1 file changed +12
-10
lines changed
1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -102,19 +102,21 @@ const transform = () => {
102
102
} ) ;
103
103
}
104
104
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' ,
110
111
} ,
111
112
{
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
+ ] ;
116
118
} else {
117
- throw " Failed to add required authentication variables"
119
+ throw ' Failed to add required authentication variables' ;
118
120
}
119
121
120
122
saveJsonFile ( path . join ( TMP_FOLDER , COLLECTION_TRANSFORMED_FILE_NAME ) , collection ) ;
You can’t perform that action at this time.
0 commit comments