Skip to content

Commit

Permalink
fix typing of encrypt and appName mssql settings (#7)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Peveler <[email protected]>
  • Loading branch information
MasterOdin authored Jan 23, 2021
1 parent 7f84a6b commit 6f4b813
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/adapters/sqlserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,20 @@ export default class SqlServerAdapter extends AbstractAdapter {
}

configDatabase(): config {
const config = {
const config: config = {
user: this.server.config.user,
password: this.server.config.password,
server: <string>this.server.config.host,
database: this.database.database,
port: this.server.config.port,
requestTimeout: Infinity,
appName: this.server.config.applicationName || 'sqlectron',
domain: this.server.config.domain,
pool: {
max: 5,
},
options: {
encrypt: this.server.config.ssl,
encrypt: !!this.server.config.ssl,
appName: this.server.config.applicationName || 'sqlectron',
enableArithAbort: true,
},
};
Expand All @@ -79,7 +79,7 @@ export default class SqlServerAdapter extends AbstractAdapter {
config.port = this.server.config.localPort;
}

return <config>config;
return config;
}

async connect(): Promise<void> {
Expand Down

0 comments on commit 6f4b813

Please sign in to comment.