add missing driver type from db config

This commit is contained in:
Joseph Ditton 2021-12-04 20:57:25 -07:00
parent d45d93b750
commit ac930bf0d7
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ export = process.env.NODE_ENV === 'development'
entities: ['server/entities/**/*.entity.ts'],
}
: {
type: 'postgres',
url: process.env.DATABASE_URL,
ssl: { rejectUnauthorized: true },
migrations: ['server/database/migrations/*.ts'],

View File

@ -11,6 +11,7 @@ export const config: TypeOrmModuleOptions =
autoLoadEntities: true,
}
: {
type: 'postgres',
url: process.env.DATABASE_URL,
ssl: { rejectUnauthorized: true },
};