File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -559,7 +559,7 @@ You can also inject the `DataSource` or `EntityManager` for a given data source:
559
559
@Injectable ()
560
560
export class AlbumsService {
561
561
constructor (
562
- @InjectConnection (' albumsConnection' )
562
+ @InjectDataSource (' albumsConnection' )
563
563
private dataSource : DataSource ,
564
564
@InjectEntityManager (' albumsConnection' )
565
565
private entityManager : EntityManager ,
@@ -1149,7 +1149,7 @@ You can also inject the `Sequelize` instance for a given connection:
1149
1149
@Injectable ()
1150
1150
export class AlbumsService {
1151
1151
constructor (
1152
- @InjectConnection (' albumsConnection' )
1152
+ @InjectDataSource (' albumsConnection' )
1153
1153
private sequelize : Sequelize ,
1154
1154
) {}
1155
1155
}
@@ -1165,7 +1165,7 @@ It's also possible to inject any `Sequelize` instance to the providers:
1165
1165
useFactory : (albumsSequelize : Sequelize ) => {
1166
1166
return new AlbumsService (albumsSequelize );
1167
1167
},
1168
- inject: [getConnectionToken (' albumsConnection' )],
1168
+ inject: [getDataSourceToken (' albumsConnection' )],
1169
1169
},
1170
1170
],
1171
1171
})
You can’t perform that action at this time.
0 commit comments