Skip to content

Commit

Permalink
chore(): add inject connection alias and mark it as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Apr 7, 2022
1 parent 9ce3a03 commit 2f91da4
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit 2f91da4

Please sign in to comment.