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