mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
becca conversion WIP
This commit is contained in:
@@ -30,7 +30,7 @@ async function exec(req) {
|
||||
}
|
||||
|
||||
async function run(req) {
|
||||
const note = repository.getNote(req.params.noteId);
|
||||
const note = becca.getNote(req.params.noteId);
|
||||
|
||||
const result = await scriptService.executeNote(note, { originEntity: note });
|
||||
|
||||
@@ -78,7 +78,7 @@ function getWidgetBundles() {
|
||||
|
||||
function getRelationBundles(req) {
|
||||
const noteId = req.params.noteId;
|
||||
const note = repository.getNote(noteId);
|
||||
const note = becca.getNote(noteId);
|
||||
const relationName = req.params.relationName;
|
||||
|
||||
const attributes = note.getAttributes();
|
||||
@@ -89,7 +89,7 @@ function getRelationBundles(req) {
|
||||
const bundles = [];
|
||||
|
||||
for (const noteId of uniqueNoteIds) {
|
||||
const note = repository.getNote(noteId);
|
||||
const note = becca.getNote(noteId);
|
||||
|
||||
if (!note.isJavaScript() || note.getScriptEnv() !== 'frontend') {
|
||||
continue;
|
||||
@@ -106,7 +106,7 @@ function getRelationBundles(req) {
|
||||
}
|
||||
|
||||
function getBundle(req) {
|
||||
const note = repository.getNote(req.params.noteId);
|
||||
const note = becca.getNote(req.params.noteId);
|
||||
|
||||
return scriptService.getScriptBundleForFrontend(note);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user