Skip to content

Commit ab75359

Browse files
committed
feat: config db
1 parent c0f73b4 commit ab75359

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/typeorm.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type TypeOrmConfig = (...args: any[]) => TypeOrmModuleOptions;
77

88
export const typeOrmConfig: TypeOrmConfig = (configService: ConfigService) => {
99
return {
10-
type: 'mysql',
10+
type: configService.get('JAMIE_API_DATABASE_TYPE').default('mysql'),
1111
host: configService.get('JAMIE_API_DATABASE_HOST'),
1212
port: +configService.get('JAMIE_API_DATABASE_PORT'),
1313
username: configService.get('JAMIE_API_DATABASE_USER'),

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jamie-api",
3-
"version": "0.0.1",
3+
"version": "0.1.0-rc1",
44
"description": "",
55
"author": "",
66
"private": true,
@@ -100,4 +100,4 @@
100100
"coverageDirectory": "../coverage",
101101
"testEnvironment": "node"
102102
}
103-
}
103+
}

0 commit comments

Comments
 (0)