Skip to content

Commit

Permalink
chore: default DB_TYPE value for data-source.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyoptimist committed May 17, 2024
1 parent c7823ad commit 581391b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { DB_TYPE, DB_HOST, DB_USERNAME, DB_PASSWORD, DB_PORT, DB_DATABASE } =
process.env;

export default new DataSource({
type: DB_TYPE,
type: DB_TYPE || 'postgres',
host: DB_HOST,
port: Number(DB_PORT),
username: DB_USERNAME,
Expand Down

0 comments on commit 581391b

Please sign in to comment.