Skip to content
Prev Previous commit
Next Next commit
chore(): add inject connection alias and mark it as deprecated
  • Loading branch information
kamilmysliwiec committed Apr 7, 2022
commit 2f91da4d93a1b468e1c53290b78c0dc0c13a9783
3 changes: 3 additions & 0 deletions lib/common/typeorm.decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof Inject> = (
Expand Down