mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
refactored "sync" table to "entity_changes" - more changes
This commit is contained in:
@@ -66,7 +66,7 @@ function moveBranchBeforeNote(req) {
|
||||
sql.execute("UPDATE branches SET notePosition = notePosition + 10 WHERE parentNoteId = ? AND notePosition >= ? AND isDeleted = 0",
|
||||
[beforeNote.parentNoteId, beforeNote.notePosition]);
|
||||
|
||||
entityChangesService.addNoteReorderingSync(beforeNote.parentNoteId);
|
||||
entityChangesService.addNoteReorderingEntityChange(beforeNote.parentNoteId);
|
||||
|
||||
if (branchToMove.parentNoteId === beforeNote.parentNoteId) {
|
||||
branchToMove.notePosition = beforeNote.notePosition;
|
||||
@@ -100,7 +100,7 @@ function moveBranchAfterNote(req) {
|
||||
sql.execute("UPDATE branches SET notePosition = notePosition + 10 WHERE parentNoteId = ? AND notePosition > ? AND isDeleted = 0",
|
||||
[afterNote.parentNoteId, afterNote.notePosition]);
|
||||
|
||||
entityChangesService.addNoteReorderingSync(afterNote.parentNoteId);
|
||||
entityChangesService.addNoteReorderingEntityChange(afterNote.parentNoteId);
|
||||
|
||||
const movedNotePosition = afterNote.notePosition + 10;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user