mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +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 becca = require('../../becca/becca'); | ||||||
| const syncService = require('../../services/sync'); | const syncService = require('../../services/sync'); | ||||||
|  |  | ||||||
| function exec(req) { | async function exec(req) { | ||||||
|     try { |     try { | ||||||
|         const {body} = req; |         const {body} = req; | ||||||
|  |  | ||||||
|         const result = scriptService.executeScript( |         const result = await scriptService.executeScript( | ||||||
|             body.script, |             body.script, | ||||||
|             body.params, |             body.params, | ||||||
|             body.startNoteId, |             body.startNoteId, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user