mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
yet another refactoring of working with note's payload/content
This commit is contained in:
@@ -14,11 +14,11 @@ async function searchNotes(req) {
|
||||
}
|
||||
|
||||
async function saveSearchToNote(req) {
|
||||
const noteContent = {
|
||||
const content = {
|
||||
searchString: req.params.searchString
|
||||
};
|
||||
|
||||
const {note} = await noteService.createNote('root', req.params.searchString, noteContent, {
|
||||
const {note} = await noteService.createNote('root', req.params.searchString, content, {
|
||||
json: true,
|
||||
type: 'search',
|
||||
mime: "application/json"
|
||||
|
||||
Reference in New Issue
Block a user