renamed treeCache into froca

This commit is contained in:
zadam
2021-04-16 22:57:37 +02:00
parent 4311834d75
commit af5b1021c7
63 changed files with 292 additions and 292 deletions

View File

@@ -1,7 +1,7 @@
import ScriptContext from "./script_context.js";
import server from "./server.js";
import toastService from "./toast.js";
import treeCache from "./tree_cache.js";
import froca from "./tree_cache.js";
import utils from "./utils.js";
async function getAndExecuteBundle(noteId, originEntity = null) {
@@ -19,7 +19,7 @@ async function executeBundle(bundle, originEntity, $container) {
}.call(apiContext));
}
catch (e) {
const note = await treeCache.getNote(bundle.noteId);
const note = await froca.getNote(bundle.noteId);
toastService.showAndLogError(`Execution of JS note "${note.title}" with ID ${bundle.noteId} failed with error: ${e.message}`);
}