This commit is contained in:
zadam
2020-01-30 22:38:31 +01:00
parent 48b401164a
commit 8bf794f13b
6 changed files with 67 additions and 41 deletions

View File

@@ -83,6 +83,8 @@ async function fillInAdditionalProperties(sync) {
sync.noteId = await sql.getValue(`SELECT noteId
FROM note_revisions
WHERE noteRevisionId = ?`, [sync.entityId]);
} else if (sync.entityName === 'note_reordering') {
sync.positions = await sql.getMap(`SELECT branchId, notePosition FROM branches WHERE isDeleted = 0 AND parentNoteId = ?`, [sync.entityId]);
}
}