server-ts: Address requested changes

This commit is contained in:
Elian Doran
2024-04-10 19:26:08 +03:00
parent ea36b37f66
commit fb32ab9707
2 changed files with 5 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ function executeScript(script: string, params: ScriptParams, startNoteId: string
return executeBundle(bundle, { startNote, originEntity });
}
function execute(ctx: any, script: string) {
function execute(ctx: ScriptContext, script: string) {
return function () { return eval(`const apiContext = this;\r\n(${script}\r\n)()`); }.call(ctx);
}