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