Skip to content
This repository was archived by the owner on Apr 19, 2020. It is now read-only.

Commit c3d9160

Browse files
committed
Fix test coverage
1 parent 2a992b3 commit c3d9160

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/utils/get-config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function getConfig(
4141
user,
4242
password,
4343
path,
44-
params = {}
44+
params
4545
} = new ConnectionString(uri, {
4646
params: {
4747
application_name: '@synor/database-postgresql',
@@ -64,7 +64,7 @@ export function getConfig(
6464
throw new Error('[URI] missing: database!')
6565
}
6666

67-
const sslParams: boolean | SSLParams = JSON.parse(params.ssl || false)
67+
const sslParams: boolean | SSLParams = JSON.parse(params!.ssl || false)
6868

6969
let ssl: boolean | SSLConfig
7070

@@ -95,12 +95,12 @@ export function getConfig(
9595
user,
9696
password,
9797
ssl,
98-
application_name: params.application_name
98+
application_name: params!.application_name
9999
}
100100

101101
const engineConfig: PostgreSQLEngineConfig = {
102-
migrationRecordTable: params.synor_migration_record_table,
103-
schema: params.schema
102+
migrationRecordTable: params!.synor_migration_record_table,
103+
schema: params!.schema
104104
}
105105

106106
return [databaseConfig, engineConfig]

0 commit comments

Comments
 (0)