Skip to content

Commit

Permalink
feat: config db
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphg6 committed Jun 21, 2023
1 parent c0f73b4 commit ab75359
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/typeorm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type TypeOrmConfig = (...args: any[]) => TypeOrmModuleOptions;

export const typeOrmConfig: TypeOrmConfig = (configService: ConfigService) => {
return {
type: 'mysql',
type: configService.get('JAMIE_API_DATABASE_TYPE').default('mysql'),
host: configService.get('JAMIE_API_DATABASE_HOST'),
port: +configService.get('JAMIE_API_DATABASE_PORT'),
username: configService.get('JAMIE_API_DATABASE_USER'),
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jamie-api",
"version": "0.0.1",
"version": "0.1.0-rc1",
"description": "",
"author": "",
"private": true,
Expand Down Expand Up @@ -100,4 +100,4 @@
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}
}

0 comments on commit ab75359

Please sign in to comment.