From 2f91da4d93a1b468e1c53290b78c0dc0c13a9783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20My=C5=9Bliwiec?= Date: Thu, 7 Apr 2022 11:46:57 +0200 Subject: [PATCH] chore(): add inject connection alias and mark it as deprecated --- lib/common/typeorm.decorators.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/common/typeorm.decorators.ts b/lib/common/typeorm.decorators.ts index 9734dd0eb..87523e64a 100644 --- a/lib/common/typeorm.decorators.ts +++ b/lib/common/typeorm.decorators.ts @@ -19,6 +19,9 @@ export const InjectDataSource: ( dataSource?: DataSource | DataSourceOptions | string, ) => Inject(getDataSourceToken(dataSource)); +/** @deprecated */ +export const InjectConnection = InjectDataSource; + export const InjectEntityManager: ( dataSource?: DataSource | DataSourceOptions | string, ) => ReturnType = (