Skip to content

Commit

Permalink
chore: uer DB_NAME in place of DB_DATABASE
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePrimeJnr committed Aug 12, 2024
1 parent 7a6dd5c commit 7c65032
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ DB_TYPE=
DB_USERNAME=
DB_PASSWORD=
DB_HOST=
DB_DATABASE=hng
DB_NAME=hng
DB_ENTITIES=dist/src/modules/**/entities/**/*.entity{.ts,.js}
DB_MIGRATIONS=dist/db/migrations/*{.ts,.js}
POSGRES_USER=$DB_USERNAME
Expand Down
2 changes: 1 addition & 1 deletion src/database/data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const dataSource = new DataSource({
username: process.env.DB_USERNAME,
password: process.env.DB_PASSWORD,
host: process.env.DB_HOST,
database: process.env.DB_DATABASE,
database: process.env.DB_NAME,
entities: [process.env.DB_ENTITIES],
migrations: [process.env.DB_MIGRATIONS],
synchronize: isDevelopment,
Expand Down

0 comments on commit 7c65032

Please sign in to comment.