@@ -9,23 +9,23 @@ import {ISequelizeAssociation} from "../../interfaces/ISequelizeAssociation";
99
1010export class Sequelize extends OriginSequelize implements BaseSequelize {
1111
12- throughMap : { [ through : string ] : any } ;
13- _ : { [ modelName : string ] : typeof Model } ;
12+ throughMap : { [ through : string ] : any } ;
13+ _ : { [ modelName : string ] : typeof Model } ;
1414 init : ( config : SequelizeConfig ) => void ;
1515 addModels : ( models : Array < typeof Model > | string [ ] ) => void ;
1616 associateModels : ( models : Array < typeof Model > ) => void ;
1717
1818 constructor ( config : SequelizeConfig | string ) {
1919 if ( typeof config === "string" ) {
20- super ( config )
21- } else if ( BaseSequelize . isISequelizeUriConfig ( config ) ) {
22- super ( config . uri , config )
20+ super ( config ) ;
21+ } else if ( BaseSequelize . isISequelizeUriConfig ( config ) ) {
22+ super ( config . url , config ) ;
2323 } else {
24- super ( BaseSequelize . prepareConfig ( config ) )
24+ super ( BaseSequelize . prepareConfig ( config ) ) ;
2525 }
2626
27- this . throughMap = { }
28- this . _ = { }
27+ this . throughMap = { } ;
28+ this . _ = { } ;
2929
3030 if ( typeof config !== "string" ) {
3131 this . init ( config ) ;
@@ -42,7 +42,8 @@ export class Sequelize extends OriginSequelize implements BaseSequelize {
4242 return Through ;
4343 }
4444
45- adjustAssociation ( model : any , association : ISequelizeAssociation ) : void { }
45+ adjustAssociation ( model : any , association : ISequelizeAssociation ) : void {
46+ }
4647
4748 /**
4849 * Creates sequelize models and registers these models
0 commit comments