allow async scripts in runOnBackend(), fixes #2243

This commit is contained in:
zadam 2021-10-20 21:27:47 +02:00
parent 2cc4367b37
commit 069fbee3a6

View file

@ -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,