mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix ordering sync
This commit is contained in:
parent
7a94e21c54
commit
6a57b8a7e7
@ -96,8 +96,8 @@ async function updateNoteRevision(entity, sourceId) {
|
||||
|
||||
async function updateNoteReordering(entity, sourceId) {
|
||||
await sql.transactional(async () => {
|
||||
Object.keys(entity.ordering).forEach(async key => {
|
||||
await sql.execute("UPDATE branches SET notePosition = ? WHERE branchId = ?", [entity.ordering[key], key]);
|
||||
Object.keys(entity).forEach(async key => {
|
||||
await sql.execute("UPDATE branches SET notePosition = ? WHERE branchId = ?", [entity[key], key]);
|
||||
});
|
||||
|
||||
await syncTableService.addNoteReorderingSync(entity.parentNoteId, sourceId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user