mirror of
https://github.com/zadam/trilium.git
synced 2025-02-23 22:44:44 +08:00
fix protect branch
This commit is contained in:
parent
85eb50ed0f
commit
8c54b62f07
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ async function sortNotes(req) {
|
|||
|
||||
async function protectBranch(req) {
|
||||
const noteId = req.params.noteId;
|
||||
const note = repository.getNote(noteId);
|
||||
const note = await repository.getNote(noteId);
|
||||
const protect = !!parseInt(req.params.isProtected);
|
||||
|
||||
await noteService.protectNoteRecursively(note, protect);
|
||||
|
|
Loading…
Reference in a new issue