From b998c936ba77206462eece2407db7bb5f3fd54c1 Mon Sep 17 00:00:00 2001 From: azivner Date: Mon, 20 Nov 2017 19:43:48 -0500 Subject: [PATCH] don't save backups with colons in filenames, doesn't work on windows --- services/build.js | 2 +- services/notes.js | 2 +- services/sync_update.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/build.js b/services/build.js index 010010520..724935955 100644 --- a/services/build.js +++ b/services/build.js @@ -1 +1 @@ -module.exports = { build_date:"2017-11-17T00:09:29-05:00", build_revision: "a6bf04f8d4dc92445e6b4decd7dbbaa2f3e3ebaa" }; +module.exports = { build_date:"2017-11-20T08:43:54-05:00", build_revision: "2f2969b2a1fa080a7555f2dfb7ec8b933f0421fe" }; diff --git a/services/notes.js b/services/notes.js index cc676c852..cce3ab0fa 100644 --- a/services/notes.js +++ b/services/notes.js @@ -188,7 +188,7 @@ async function updateNote(noteId, newNote, ctx) { await sql.remove("links", noteId); for (const link in newNote.links) { - await sql.insert("links", link); + //await sql.insert("links", link); } await sync_table.addNoteTreeSync(noteId); diff --git a/services/sync_update.js b/services/sync_update.js index fb849b899..67aab82e3 100644 --- a/services/sync_update.js +++ b/services/sync_update.js @@ -19,7 +19,7 @@ async function updateNote(entity, links, sourceId) { for (const link of links) { delete link['lnk_id']; - await sql.insert('link', link); + //await sql.insert('link', link); } await sync_table.addNoteSync(entity.note_id, sourceId);