@@ -616,11 +616,11 @@ TypeOrmModule.forRootAsync({
616
616
imports: [ConfigModule ],
617
617
useFactory : (configService : ConfigService ) => ({
618
618
type: ' mysql' ,
619
- host: configService .get < string > (' HOST' ),
620
- port: configService .get <number >(' PORT' ),
621
- username: configService .get < string > (' USERNAME' ),
622
- password: configService .get < string > (' PASSWORD' ),
623
- database: configService .get < string > (' DATABASE' ),
619
+ host: configService .get (' HOST' ),
620
+ port: + configService .get <number >(' PORT' ),
621
+ username: configService .get (' USERNAME' ),
622
+ password: configService .get (' PASSWORD' ),
623
+ database: configService .get (' DATABASE' ),
624
624
entities: [__dirname + ' /**/*.entity{.ts,.js}' ],
625
625
synchronize: true ,
626
626
}),
@@ -1151,11 +1151,11 @@ SequelizeModule.forRootAsync({
1151
1151
imports: [ConfigModule ],
1152
1152
useFactory : (configService : ConfigService ) => ({
1153
1153
dialect: ' mysql' ,
1154
- host: configService .get < string > (' HOST' ),
1155
- port: configService .get < string > (' PORT' ),
1156
- username: configService .get < string > (' USERNAME' ),
1157
- password: configService .get < string > (' PASSWORD' ),
1158
- database: configService .get < string > (' DATABASE' ),
1154
+ host: configService .get (' HOST' ),
1155
+ port: + configService .get (' PORT' ),
1156
+ username: configService .get (' USERNAME' ),
1157
+ password: configService .get (' PASSWORD' ),
1158
+ database: configService .get (' DATABASE' ),
1159
1159
models: [],
1160
1160
}),
1161
1161
inject: [ConfigService ],
0 commit comments