Hello, I'm unable to connect to the database. Here's my code:
app.module.ts
@Module({
imports: [
ConfigModule.forRoot({
isGlobal: true,
envFilePath: ['.env', '.env.dev'],
load: [configuration],
}),
TypeOrmModule.forRoot({
host: configuration().database.host,
port: configuration().database.port,
username: configuration().database.username,
password: configuration().database.password,
entities: [__dirname + '/**/*.entity{.ts,.js}'],
synchronize: false,
migrationsRun: false,
autoLoadEntities: true,
}),