mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 08:45:50 +01:00
subtree duplication with becca
This commit is contained in:
@@ -9,6 +9,7 @@ const log = require('../../services/log');
|
||||
const TaskContext = require('../../services/task_context');
|
||||
const fs = require('fs');
|
||||
const noteRevisionService = require("../../services/note_revisions.js");
|
||||
const becca = require("../../services/becca/becca.js");
|
||||
|
||||
function getNote(req) {
|
||||
const noteId = req.params.noteId;
|
||||
@@ -107,7 +108,7 @@ function sortChildNotes(req) {
|
||||
|
||||
function protectNote(req) {
|
||||
const noteId = req.params.noteId;
|
||||
const note = repository.getNote(noteId);
|
||||
const note = becca.notes[noteId];
|
||||
const protect = !!parseInt(req.params.isProtected);
|
||||
const includingSubTree = !!parseInt(req.query.subtree);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user