Skip to content

Commit

Permalink
fix(order-service): enable shutdown hooks to allow db connections cle…
Browse files Browse the repository at this point in the history
…anup
  • Loading branch information
nebarf committed May 3, 2024
1 parent b942e95 commit d32bcc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/order-service/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ async function bootstrap() {
const app = await NestFactory.create(MainModule);
const config = app.get(ConfigService);

app.enableShutdownHooks();
app.useGlobalPipes(new ValidationPipe({ transform: true }));

await app.listen(config.server.port);

const appUrl = await app.getUrl();
Expand Down

0 comments on commit d32bcc4

Please sign in to comment.