server: Fix script execution error (closes #244)

This commit is contained in:
Elian Doran
2024-07-19 19:30:27 +03:00
parent 40363f6e8e
commit ab23459299
3 changed files with 4 additions and 8 deletions

View File

@@ -95,10 +95,6 @@ function executeScript(script: string, params: ScriptParams, startNoteId: string
throw new Error("Unable to determine script bundle.");
}
if (!startNote || !originEntity) {
throw new Error("Missing start note or origin entity.");
}
return executeBundle(bundle, { startNote, originEntity });
}