fix for forced note sync

pull/255/head
azivner 2017-12-30 21:55:44 +07:00
parent fdcc833f6d
commit 99b163a042
1 changed files with 1 additions and 1 deletions

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