From 99b163a04234f40d5e045e642c904da99a5d2b51 Mon Sep 17 00:00:00 2001 From: azivner Date: Sat, 30 Dec 2017 21:55:44 -0500 Subject: [PATCH] fix for forced note sync --- routes/api/sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api/sync.js b/routes/api/sync.js index bc0c1449d..0f1bdd89e 100644 --- a/routes/api/sync.js +++ b/routes/api/sync.js @@ -58,7 +58,7 @@ router.post('/force-note-sync/:noteId', auth.checkApiAuth, async (req, res, next } for (const noteHistoryId of await sql.getFirstColumn("SELECT note_history_id FROM notes_history WHERE note_id = ?", [noteId])) { - await sync_table.addNoteTreeSync(noteHistoryId); + await sync_table.addNoteHistorySync(noteHistoryId); } });