mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	simplification of script bundles on backend
This commit is contained in:
		| @@ -153,14 +153,8 @@ function sanitizeVariableName(str) { | ||||
|     return str.replace(/[^a-z0-9_]/gim, ""); | ||||
| } | ||||
|  | ||||
| async function getScriptBundleForNoteId(noteId) { | ||||
|     const note = await repository.getNote(noteId); | ||||
|     return await getScriptBundle(note); | ||||
| } | ||||
|  | ||||
| module.exports = { | ||||
|     executeNote, | ||||
|     executeScript, | ||||
|     getScriptBundle, | ||||
|     getScriptBundleForNoteId | ||||
|     getScriptBundle | ||||
| }; | ||||
		Reference in New Issue
	
	Block a user