We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed8c93f commit 805e901Copy full SHA for 805e901
packages/cubejs-jdbc-driver/src/JDBCDriver.ts
@@ -148,8 +148,7 @@ export class JDBCDriver extends BaseDriver {
148
const getConnection = promisify(DriverManager.getConnection.bind(DriverManager));
149
return new Connection(await getConnection(this.config.url, this.jdbcProps));
150
},
151
- // @ts-expect-error Promise<Function> vs Promise<void>
152
- destroy: async (connection) => promisify(connection.close.bind(connection)),
+ destroy: async (connection) => promisify(connection.close.bind(connection))(),
153
validate: async (connection) => (
154
new Promise((resolve) => {
155
const isValid = promisify(connection.isValid.bind(connection));
0 commit comments