mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
allow async scripts in runOnBackend(), fixes #2243
This commit is contained in:
parent
2cc4367b37
commit
069fbee3a6
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user