mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	added possibility to search by attached script returning note ids + some refactorings
This commit is contained in:
		| @@ -7,12 +7,14 @@ const log = require('./log'); | ||||
|  | ||||
| async function executeNote(note, apiParams) { | ||||
|     if (!note.isJavaScript() || note.getScriptEnv() !== 'backend' || !note.isContentAvailable) { | ||||
|         log.info(`Cannot execute note ${note.noteId}`); | ||||
|  | ||||
|         return; | ||||
|     } | ||||
|  | ||||
|     const bundle = await getScriptBundle(note); | ||||
|  | ||||
|     await executeBundle(bundle, apiParams); | ||||
|     return await executeBundle(bundle, apiParams); | ||||
| } | ||||
|  | ||||
| async function executeNoteNoException(note, apiParams) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user