Skip to content

Commit fe7886b

Browse files
Merge pull request #2628 from erduoliveira/fix/doc-sequelize
docs: example of sequelize injection for a named connection
2 parents 6d6a3be + 08f4eae commit fe7886b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ You can also inject the `Sequelize` instance for a given connection:
11471147
@Injectable()
11481148
export class AlbumsService {
11491149
constructor(
1150-
@InjectDataSource('albumsConnection')
1150+
@InjectConnection('albumsConnection')
11511151
private sequelize: Sequelize,
11521152
) {}
11531153
}

0 commit comments

Comments
 (0)