Skip to content

Commit 1832c63

Browse files
authored
sqlite - fix: fixing database close to work correctly (#1414)
1 parent 10f2081 commit 1832c63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sqlite/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class KeyvSqlite extends EventEmitter implements KeyvStoreAdapter {
6969
this.query = async (sqlString, ...parameter) => connected
7070
.then(async database => database.query(sqlString, ...parameter));
7171

72-
this.close = async () => connected.then(database => database.close);
72+
this.close = async () => connected.then(database => database.close());
7373
}
7474

7575
async get<Value>(key: string) {

0 commit comments

Comments
 (0)