mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	fix sync of date_modified in notes_tree which caused failed hash check
This commit is contained in:
		| @@ -22,7 +22,8 @@ async function createNewNote(parentNoteId, note, sourceId) { | ||||
|  | ||||
|             newNotePos = afterNote.note_pos + 1; | ||||
|  | ||||
|             await sql.execute('UPDATE notes_tree SET note_pos = note_pos + 1, date_modified = ? WHERE note_pid = ? AND note_pos > ? AND is_deleted = 0', | ||||
|             // not updating date_modified to avoig having to sync whole rows | ||||
|             await sql.execute('UPDATE notes_tree SET note_pos = note_pos + 1 WHERE note_pid = ? AND note_pos > ? AND is_deleted = 0', | ||||
|                 [utils.nowDate(), parentNoteId, afterNote.note_pos]); | ||||
|  | ||||
|             await sync_table.addNoteReorderingSync(parentNoteId, sourceId); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user