mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
custom HTTP handler which triggers associated script notes WIP, #356
This commit is contained in:
@@ -19,7 +19,7 @@ async function exec(req) {
|
||||
async function run(req) {
|
||||
const note = await repository.getNote(req.params.noteId);
|
||||
|
||||
const result = await scriptService.executeNote(note, note);
|
||||
const result = await scriptService.executeNote(note, { originEntity: note });
|
||||
|
||||
return { executionResult: result };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user