fix for forced note sync

This commit is contained in:
azivner 2017-12-30 21:55:44 -05:00
parent fdcc833f6d
commit 99b163a042

View File

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