mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	allow async scripts in runOnBackend(), fixes #2243
This commit is contained in:
		| @@ -5,11 +5,11 @@ const attributeService = require('../../services/attributes'); | ||||
| const becca = require('../../becca/becca'); | ||||
| const syncService = require('../../services/sync'); | ||||
|  | ||||
| function exec(req) { | ||||
| async function exec(req) { | ||||
|     try { | ||||
|         const {body} = req; | ||||
|  | ||||
|         const result = scriptService.executeScript( | ||||
|         const result = await scriptService.executeScript( | ||||
|             body.script, | ||||
|             body.params, | ||||
|             body.startNoteId, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user