Skip to content

Commit 12fd112

Browse files
committed
🔧 CLI: skip swagger collection save when skipSavePostmanCollection is true
1 parent 02a426d commit 12fd112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/cli/collections.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const generateCollections : any = async (config: { [x: string]: any; sess
8181
//Sort alphabetically
8282
const x = {};
8383
Object.keys(swCol.paths).sort().map(k => x[k] = swCol.paths[k]); swCol.paths = x;
84-
writeJsonSync("./open-wa-" + config.sessionId + ".sw_col.json", swCol);
84+
if(!(config?.skipSavePostmanCollection)) writeJsonSync("./open-wa-" + config.sessionId + ".sw_col.json", swCol);
8585
collections['postman'] = pmCol;
8686
collections['swagger'] = swCol;
8787
spinner.succeed('API collections (swagger + postman) generated successfully');

0 commit comments

Comments
 (0)