From 56c4598a700e203f8e6173ca5c5ba029cb7bed59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20My=C5=9Bliwiec?= Date: Wed, 15 Jun 2022 11:18:15 +0200 Subject: [PATCH] fix(): revert keep connection alive flag --- lib/interfaces/typeorm-options.interface.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/interfaces/typeorm-options.interface.ts b/lib/interfaces/typeorm-options.interface.ts index d9b0ea59b..81ef7152d 100644 --- a/lib/interfaces/typeorm-options.interface.ts +++ b/lib/interfaces/typeorm-options.interface.ts @@ -24,6 +24,10 @@ export type TypeOrmModuleOptions = { * If `true`, entities will be loaded automatically. */ autoLoadEntities?: boolean; + /** + * If `true`, connection will not be closed on application shutdown. + */ + keepConnectionAlive?: boolean; /** * If `true`, will show verbose error messages on each connection retry. */