mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
script to generate large documents, closes #55
This commit is contained in:
@@ -20,13 +20,13 @@ async function saveSearchToNote(req) {
|
||||
searchString: req.params.searchString
|
||||
};
|
||||
|
||||
const noteId = await noteService.createNote('root', 'Search note', noteContent, {
|
||||
const {note} = await noteService.createNote('root', 'Search note', noteContent, {
|
||||
json: true,
|
||||
type: 'search',
|
||||
mime: "application/json"
|
||||
});
|
||||
|
||||
return { noteId };
|
||||
return { noteId: note.noteId };
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user