mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
moving out note revision content into separate table, refactoring, WIP
This commit is contained in:
@@ -117,9 +117,9 @@ async function updateNoteRevision(entity, sourceId) {
|
||||
|
||||
async function updateNoteReordering(entityId, entity, sourceId) {
|
||||
await sql.transactional(async () => {
|
||||
Object.keys(entity).forEach(async key => {
|
||||
for (const key in entity) {
|
||||
await sql.execute("UPDATE branches SET notePosition = ? WHERE branchId = ?", [entity[key], key]);
|
||||
});
|
||||
}
|
||||
|
||||
await syncTableService.addNoteReorderingSync(entityId, sourceId);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user