diff --git a/sample/01-cats-app/src/main.ts b/sample/01-cats-app/src/main.ts index e61f12208a..261ee54ad6 100644 --- a/sample/01-cats-app/src/main.ts +++ b/sample/01-cats-app/src/main.ts @@ -9,4 +9,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/02-gateways/src/main.ts b/sample/02-gateways/src/main.ts index f60e825ab3..0826477131 100644 --- a/sample/02-gateways/src/main.ts +++ b/sample/02-gateways/src/main.ts @@ -12,4 +12,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/03-microservices/src/main.ts b/sample/03-microservices/src/main.ts index e923dda38c..e1a3626f45 100644 --- a/sample/03-microservices/src/main.ts +++ b/sample/03-microservices/src/main.ts @@ -24,4 +24,4 @@ async function bootstrap() { await app.listen(3001); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/04-grpc/src/main.ts b/sample/04-grpc/src/main.ts index 24d023e1d7..d1286480bd 100644 --- a/sample/04-grpc/src/main.ts +++ b/sample/04-grpc/src/main.ts @@ -25,4 +25,4 @@ async function bootstrap() { await app.listen(3001); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/05-sql-typeorm/src/main.ts b/sample/05-sql-typeorm/src/main.ts index b286f888f2..ab74819240 100644 --- a/sample/05-sql-typeorm/src/main.ts +++ b/sample/05-sql-typeorm/src/main.ts @@ -6,4 +6,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/06-mongoose/src/main.ts b/sample/06-mongoose/src/main.ts index b286f888f2..ab74819240 100644 --- a/sample/06-mongoose/src/main.ts +++ b/sample/06-mongoose/src/main.ts @@ -6,4 +6,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/07-sequelize/src/main.ts b/sample/07-sequelize/src/main.ts index b286f888f2..ab74819240 100644 --- a/sample/07-sequelize/src/main.ts +++ b/sample/07-sequelize/src/main.ts @@ -6,4 +6,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/08-webpack/src/main.ts b/sample/08-webpack/src/main.ts index d4d7d8a21a..713981556c 100644 --- a/sample/08-webpack/src/main.ts +++ b/sample/08-webpack/src/main.ts @@ -13,4 +13,4 @@ async function bootstrap() { module.hot.dispose(() => app.close()); } } -bootstrap(); +await bootstrap(); diff --git a/sample/10-fastify/src/main.ts b/sample/10-fastify/src/main.ts index cc50590e3a..bf299f6683 100644 --- a/sample/10-fastify/src/main.ts +++ b/sample/10-fastify/src/main.ts @@ -15,4 +15,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/11-swagger/src/main.ts b/sample/11-swagger/src/main.ts index 63d8719b5b..4b20e34f90 100644 --- a/sample/11-swagger/src/main.ts +++ b/sample/11-swagger/src/main.ts @@ -18,4 +18,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/12-graphql-schema-first/src/main.ts b/sample/12-graphql-schema-first/src/main.ts index e61f12208a..261ee54ad6 100644 --- a/sample/12-graphql-schema-first/src/main.ts +++ b/sample/12-graphql-schema-first/src/main.ts @@ -9,4 +9,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/13-mongo-typeorm/src/main.ts b/sample/13-mongo-typeorm/src/main.ts index b286f888f2..ab74819240 100644 --- a/sample/13-mongo-typeorm/src/main.ts +++ b/sample/13-mongo-typeorm/src/main.ts @@ -6,4 +6,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/14-mongoose-base/src/main.ts b/sample/14-mongoose-base/src/main.ts index b286f888f2..ab74819240 100644 --- a/sample/14-mongoose-base/src/main.ts +++ b/sample/14-mongoose-base/src/main.ts @@ -6,4 +6,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/15-mvc/src/main.ts b/sample/15-mvc/src/main.ts index 2a6ed53404..55b2f6f570 100644 --- a/sample/15-mvc/src/main.ts +++ b/sample/15-mvc/src/main.ts @@ -16,4 +16,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/16-gateways-ws/src/main.ts b/sample/16-gateways-ws/src/main.ts index cf88d5e91d..645b707238 100644 --- a/sample/16-gateways-ws/src/main.ts +++ b/sample/16-gateways-ws/src/main.ts @@ -9,4 +9,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/17-mvc-fastify/src/main.ts b/sample/17-mvc-fastify/src/main.ts index ee6a8d1f9b..7bfd92b4fe 100644 --- a/sample/17-mvc-fastify/src/main.ts +++ b/sample/17-mvc-fastify/src/main.ts @@ -29,4 +29,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/18-context/src/main.ts b/sample/18-context/src/main.ts index 1326d015e5..8c4ab8ab91 100644 --- a/sample/18-context/src/main.ts +++ b/sample/18-context/src/main.ts @@ -16,4 +16,4 @@ async function bootstrap() { return app.close(); } -bootstrap(); +await bootstrap(); diff --git a/sample/19-auth-jwt/src/main.ts b/sample/19-auth-jwt/src/main.ts index b286f888f2..ab74819240 100644 --- a/sample/19-auth-jwt/src/main.ts +++ b/sample/19-auth-jwt/src/main.ts @@ -6,4 +6,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/20-cache/src/main.ts b/sample/20-cache/src/main.ts index e61f12208a..261ee54ad6 100644 --- a/sample/20-cache/src/main.ts +++ b/sample/20-cache/src/main.ts @@ -9,4 +9,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/21-serializer/src/main.ts b/sample/21-serializer/src/main.ts index e61f12208a..261ee54ad6 100644 --- a/sample/21-serializer/src/main.ts +++ b/sample/21-serializer/src/main.ts @@ -9,4 +9,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/22-graphql-prisma/src/main.ts b/sample/22-graphql-prisma/src/main.ts index 47f7f9c1d5..a3b182ae89 100755 --- a/sample/22-graphql-prisma/src/main.ts +++ b/sample/22-graphql-prisma/src/main.ts @@ -10,4 +10,4 @@ async function bootstrap() { console.log(`Application is running on: ${await app.getUrl()}`); console.log(`GraphQL Playground: ${await app.getUrl()}/graphql`); } -bootstrap(); +await bootstrap(); diff --git a/sample/23-graphql-code-first/src/main.ts b/sample/23-graphql-code-first/src/main.ts index e61f12208a..261ee54ad6 100644 --- a/sample/23-graphql-code-first/src/main.ts +++ b/sample/23-graphql-code-first/src/main.ts @@ -9,4 +9,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/24-serve-static/src/main.ts b/sample/24-serve-static/src/main.ts index 893d535758..6e7de75b28 100644 --- a/sample/24-serve-static/src/main.ts +++ b/sample/24-serve-static/src/main.ts @@ -8,4 +8,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/25-dynamic-modules/src/main.ts b/sample/25-dynamic-modules/src/main.ts index b286f888f2..ab74819240 100644 --- a/sample/25-dynamic-modules/src/main.ts +++ b/sample/25-dynamic-modules/src/main.ts @@ -6,4 +6,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/26-queues/src/main.ts b/sample/26-queues/src/main.ts index b286f888f2..ab74819240 100644 --- a/sample/26-queues/src/main.ts +++ b/sample/26-queues/src/main.ts @@ -6,4 +6,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/27-scheduling/src/main.ts b/sample/27-scheduling/src/main.ts index b286f888f2..ab74819240 100644 --- a/sample/27-scheduling/src/main.ts +++ b/sample/27-scheduling/src/main.ts @@ -6,4 +6,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/28-sse/src/main.ts b/sample/28-sse/src/main.ts index f1124b2f5e..41c3b08067 100644 --- a/sample/28-sse/src/main.ts +++ b/sample/28-sse/src/main.ts @@ -9,4 +9,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/29-file-upload/src/main.ts b/sample/29-file-upload/src/main.ts index e61f12208a..261ee54ad6 100644 --- a/sample/29-file-upload/src/main.ts +++ b/sample/29-file-upload/src/main.ts @@ -9,4 +9,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/30-event-emitter/src/main.ts b/sample/30-event-emitter/src/main.ts index d5c495cbae..524db419b6 100644 --- a/sample/30-event-emitter/src/main.ts +++ b/sample/30-event-emitter/src/main.ts @@ -5,4 +5,4 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3000); } -bootstrap(); +await bootstrap(); diff --git a/sample/31-graphql-federation-code-first/gateway/src/main.ts b/sample/31-graphql-federation-code-first/gateway/src/main.ts index 81505f1df5..178a3e241d 100644 --- a/sample/31-graphql-federation-code-first/gateway/src/main.ts +++ b/sample/31-graphql-federation-code-first/gateway/src/main.ts @@ -5,4 +5,4 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3001); } -bootstrap(); +await bootstrap(); diff --git a/sample/31-graphql-federation-code-first/posts-application/src/main.ts b/sample/31-graphql-federation-code-first/posts-application/src/main.ts index bf873910f3..b867d86b74 100644 --- a/sample/31-graphql-federation-code-first/posts-application/src/main.ts +++ b/sample/31-graphql-federation-code-first/posts-application/src/main.ts @@ -5,4 +5,4 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3003); } -bootstrap(); +await bootstrap(); diff --git a/sample/31-graphql-federation-code-first/users-application/src/main.ts b/sample/31-graphql-federation-code-first/users-application/src/main.ts index ce5c77784d..31d3841501 100644 --- a/sample/31-graphql-federation-code-first/users-application/src/main.ts +++ b/sample/31-graphql-federation-code-first/users-application/src/main.ts @@ -5,4 +5,4 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3002); } -bootstrap(); +await bootstrap(); diff --git a/sample/32-graphql-federation-schema-first/gateway/src/main.ts b/sample/32-graphql-federation-schema-first/gateway/src/main.ts index ce5c77784d..31d3841501 100644 --- a/sample/32-graphql-federation-schema-first/gateway/src/main.ts +++ b/sample/32-graphql-federation-schema-first/gateway/src/main.ts @@ -5,4 +5,4 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3002); } -bootstrap(); +await bootstrap(); diff --git a/sample/32-graphql-federation-schema-first/posts-application/src/main.ts b/sample/32-graphql-federation-schema-first/posts-application/src/main.ts index 81505f1df5..178a3e241d 100644 --- a/sample/32-graphql-federation-schema-first/posts-application/src/main.ts +++ b/sample/32-graphql-federation-schema-first/posts-application/src/main.ts @@ -5,4 +5,4 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3001); } -bootstrap(); +await bootstrap(); diff --git a/sample/32-graphql-federation-schema-first/users-application/src/main.ts b/sample/32-graphql-federation-schema-first/users-application/src/main.ts index d5c495cbae..524db419b6 100644 --- a/sample/32-graphql-federation-schema-first/users-application/src/main.ts +++ b/sample/32-graphql-federation-schema-first/users-application/src/main.ts @@ -5,4 +5,4 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3000); } -bootstrap(); +await bootstrap(); diff --git a/sample/33-graphql-mercurius/src/main.ts b/sample/33-graphql-mercurius/src/main.ts index f7f3e7096d..9c35f93336 100644 --- a/sample/33-graphql-mercurius/src/main.ts +++ b/sample/33-graphql-mercurius/src/main.ts @@ -10,4 +10,4 @@ async function bootstrap() { await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } -bootstrap(); +await bootstrap(); diff --git a/sample/34-hmr-esm/src/main.ts b/sample/34-hmr-esm/src/main.ts index 0ad79fde1b..180c438f26 100644 --- a/sample/34-hmr-esm/src/main.ts +++ b/sample/34-hmr-esm/src/main.ts @@ -16,4 +16,4 @@ async function bootstrap() { module.hot.dispose(() => app.close()); } } -bootstrap(); +await bootstrap();