mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	fix protect branch
This commit is contained in:
		@@ -47,7 +47,7 @@ async function sortNotes(req) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
async function protectBranch(req) {
 | 
					async function protectBranch(req) {
 | 
				
			||||||
    const noteId = req.params.noteId;
 | 
					    const noteId = req.params.noteId;
 | 
				
			||||||
    const note = repository.getNote(noteId);
 | 
					    const note = await repository.getNote(noteId);
 | 
				
			||||||
    const protect = !!parseInt(req.params.isProtected);
 | 
					    const protect = !!parseInt(req.params.isProtected);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    await noteService.protectNoteRecursively(note, protect);
 | 
					    await noteService.protectNoteRecursively(note, protect);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user