Skip to content

Commit 75ec836

Browse files
torjTor Jonsson
and
Tor Jonsson
authored
fix: await generateService in main function generate (#34)
Co-authored-by: Tor Jonsson <[email protected]>
1 parent db2d57f commit 75ec836

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import { partialUpdateJson } from "./updateJson";
1111
async function generate(config?: SwaggerConfig, cli?: Partial<Config>) {
1212
config = config ?? getSwaggerConfig();
1313
const configs = Array.isArray(config) ? config : [config];
14-
configs.forEach((con) => {
15-
generateService(con, cli);
16-
});
14+
for(const con of configs){
15+
await generateService(con, cli);
16+
}
1717
}
1818

1919
const generateService = async (config: Config, cli?: Partial<Config>) => {

0 commit comments

Comments
 (0)