mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
#125, basic infrastructure for scripts attached to notes via relations
This commit is contained in:
@@ -5,7 +5,8 @@ const scriptService = require('../../services/script');
|
||||
const repository = require('../../services/repository');
|
||||
|
||||
async function exec(req) {
|
||||
const result = await scriptService.executeScript(req.body.script, req.body.params, req.body.startNoteId, req.body.currentNoteId);
|
||||
const result = await scriptService.executeScript(req.body.script, req.body.params, req.body.startNoteId,
|
||||
req.body.currentNoteId, req.body.targetNoteId);
|
||||
|
||||
return { executionResult: result };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user