1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Cli: Fix last change sometimes lost when not in TUI mode (#13090)

This commit is contained in:
Henry Heino
2025-09-08 04:03:13 -07:00
committed by GitHub
parent 88f687ba6a
commit f6b3f9860c
4 changed files with 16 additions and 2 deletions

View File

@@ -16,6 +16,12 @@ class DatabaseDriverNode {
});
}
close() {
return new Promise(resolve => {
this.db_.close(() => resolve());
});
}
sqliteErrorToJsError(error, sql = null, params = null) {
const msg = [error.toString()];
if (sql) msg.push(sql);