force note sync will sync also note content

This commit is contained in:
zadam 2019-10-11 21:24:49 +02:00
parent bcbbf4dc3e
commit 2fb3a3eff9

View File

@ -75,6 +75,7 @@ async function forceNoteSync(req) {
const noteId = req.params.noteId;
await syncTableService.addNoteSync(noteId);
await syncTableService.addNoteContentSync(noteId);
for (const branchId of await sql.getColumn("SELECT branchId FROM branches WHERE isDeleted = 0 AND noteId = ?", [noteId])) {
await syncTableService.addBranchSync(branchId);