diff --git a/src/routes/api/script.js b/src/routes/api/script.js index 11cc025f9..b591307df 100644 --- a/src/routes/api/script.js +++ b/src/routes/api/script.js @@ -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,