Skip to content

Commit 1781bbc

Browse files
fix: close db function is broken
fixes: #1724
1 parent f076b0b commit 1781bbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package/src/store/QuickSqliteClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ export class QuickSqliteClient {
3939
};
4040

4141
static closeDB = () => {
42-
const { message, status } = sqlite.open(this.dbName, this.dbLocation);
42+
const { message, status } = sqlite.close(this.dbName);
4343

4444
if (status === DB_STATUS_ERROR) {
45-
console.error(`Error opening database ${this.dbName}: ${message}`);
45+
console.error(`Error closing database ${this.dbName}: ${message}`);
4646
}
4747
};
4848

0 commit comments

Comments
 (0)