Skip to content

Commit fd9f408

Browse files
committed
fix(duckdb): release connection
1 parent eeda56a commit fd9f408

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cubejs-duckdb-driver/src/DuckDBDriver.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ export class DuckDBDriver extends BaseDriver implements DriverInterface {
132132

133133
public async release(): Promise<void> {
134134
if (this.initPromise) {
135-
const close = promisify((await this.initPromise).close).bind(this);
135+
const db = await this.initPromise;
136+
const close = promisify(db.close).bind(db);
136137
this.initPromise = null;
137138

138139
await close();

0 commit comments

Comments
 (0)