mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
converted note revision protection to repository/entities
This commit is contained in:
@@ -41,7 +41,7 @@ function ScriptApi(startNote, currentNote) {
|
||||
this.getInstanceName = () => config.General ? config.General.instanceName : null;
|
||||
|
||||
this.getNoteById = async function(noteId) {
|
||||
return repository.getNote(noteId);
|
||||
return await repository.getNote(noteId);
|
||||
};
|
||||
|
||||
this.getNotesWithLabel = async function (attrName, attrValue) {
|
||||
|
||||
Reference in New Issue
Block a user