1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-27 23:28:38 +02:00

Cli: Fixed crash due to missing spellfix extension

This commit is contained in:
Laurent Cozic
2020-09-23 12:14:17 +01:00
parent 25ab3c323b
commit 2200be697e
3 changed files with 22 additions and 3 deletions

View File

@ -37,7 +37,15 @@ class DatabaseDriverNode {
}
loadExtension(path) {
return this.db_.loadExtension(path);
return new Promise((resolve, reject) => {
this.db_.loadExtension(path, (error) => {
if (error) {
reject(error);
} else {
resolve();
}
});
});
}
selectAll(sql, params = null) {