simplification of script bundles on backend

This commit is contained in:
azivner
2019-01-13 11:56:50 +01:00
parent 3d8905207e
commit f7f0560a9f
3 changed files with 10 additions and 14 deletions

View File

@@ -153,14 +153,8 @@ function sanitizeVariableName(str) {
return str.replace(/[^a-z0-9_]/gim, "");
}
async function getScriptBundleForNoteId(noteId) {
const note = await repository.getNote(noteId);
return await getScriptBundle(note);
}
module.exports = {
executeNote,
executeScript,
getScriptBundle,
getScriptBundleForNoteId
getScriptBundle
};