cosmetic sync related changes

This commit is contained in:
azivner
2017-11-29 21:04:30 -05:00
parent 6d603eda86
commit e6629b2c93
4 changed files with 17 additions and 19 deletions

View File

@@ -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
};