mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 08:46:43 +01:00
cosmetic sync related changes
This commit is contained in:
@@ -104,10 +104,6 @@ async function executeScript(query) {
|
||||
return await wrap(async db => db.exec(query));
|
||||
}
|
||||
|
||||
async function remove(tableName, noteId) {
|
||||
return await execute("DELETE FROM " + tableName + " WHERE note_id = ?", [noteId]);
|
||||
}
|
||||
|
||||
async function wrap(func) {
|
||||
const thisError = new Error();
|
||||
const db = await dbReady;
|
||||
@@ -187,6 +183,5 @@ module.exports = {
|
||||
getFlattenedResults,
|
||||
execute,
|
||||
executeScript,
|
||||
remove,
|
||||
doInTransaction
|
||||
};
|
||||
Reference in New Issue
Block a user