mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-06 21:09:50 -06:00
repository is now stateless
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const sql = require('./sql');
|
||||
const ScriptContext = require('./script_context');
|
||||
const Repository = require('./repository');
|
||||
const repository = require('./repository');
|
||||
|
||||
async function executeNote(note) {
|
||||
if (!note.isJavaScript()) {
|
||||
@@ -36,7 +36,6 @@ async function executeBundle(bundle, startNote) {
|
||||
* bundle's startNote.
|
||||
*/
|
||||
async function executeScript(script, params, startNoteId, currentNoteId) {
|
||||
const repository = new Repository();
|
||||
const startNote = await repository.getNote(startNoteId);
|
||||
const currentNote = await repository.getNote(currentNoteId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user