Skip to content

Commit

Permalink
Merge pull request #41 from leapfrogtechnology/avoid-vendor-defaults
Browse files Browse the repository at this point in the history
Avoid vendor specific defaults in the config
  • Loading branch information
kabirbaidhya authored Feb 3, 2020
2 parents 2d36521 + 5c59b0e commit 7d6f5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function resolveConnectionsFromEnv(): ConnectionConfig[] {
const connection = {
client: process.env.DB_CLIENT,
host: process.env.DB_HOST,
port: +(process.env.DB_PORT || 1433),
port: process.env.DB_PORT ? +(process.env.DB_PORT) : null,
user: process.env.DB_USERNAME,
password: process.env.DB_PASSWORD,
database: process.env.DB_NAME,
Expand Down

0 comments on commit 7d6f5cf

Please sign in to comment.