mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 19:51:57 +08:00
allow async scripts in runOnBackend(), fixes #2243
This commit is contained in:
parent
2cc4367b37
commit
069fbee3a6
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue