Skip to content

Commit 4cb6f61

Browse files
committed
fix: format
1 parent 006c626 commit 4cb6f61

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

tools/postman/scripts/transform-postman.js

+12-10
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)