Синхронизация, фикс ошибок

This commit is contained in:
RoyceDa
2026-02-15 18:15:03 +02:00
parent 8b906169ce
commit 4a505ab974
6 changed files with 73 additions and 17 deletions

View File

@@ -16,7 +16,8 @@ export function runQuery(query: string, params: any[] = []) : Promise<void> {
return new Promise((resolve, reject) => {
db.run(query, params, function (err) {
if (err) {
reject();
console.info("Query error: ", err, query, params);
reject(err);
} else {
resolve();
}