return only startup bundles for executale notes

This commit is contained in:
azivner 2018-03-08 23:36:08 -05:00
parent b2df622cb6
commit 895bda41b5

View file

@ -36,7 +36,9 @@ router.get('/startup', auth.checkApiAuth, wrap(async (req, res, next) => {
for (const note of notes) {
const bundle = await script.getScriptBundle(note);
scripts.push(bundle);
if (bundle) {
scripts.push(bundle);
}
}
res.send(scripts);