#125, implementation of inheritable relations

This commit is contained in:
azivner
2018-07-29 18:39:10 +02:00
parent 170d317589
commit ed1381103a
8 changed files with 58 additions and 14 deletions

View File

@@ -23,8 +23,17 @@ async function executeStartupBundles() {
}
}
async function executeRelationBundles(note, relationName) {
const bundlesToRun = await server.get("script/relation/" + note.noteId + "/" + relationName);
for (const bundle of bundlesToRun) {
await executeBundle(bundle, note);
}
}
export default {
executeBundle,
getAndExecuteBundle,
executeStartupBundles
executeStartupBundles,
executeRelationBundles
}