fix execute note

This commit is contained in:
azivner 2018-04-06 19:41:48 -04:00
parent 0cef5c6b8c
commit 39dc0f71b4

View File

@ -67,13 +67,13 @@ async function executeCurrentNote() {
const currentNote = noteDetailService.getCurrentNote(); const currentNote = noteDetailService.getCurrentNote();
if (currentNote.mime.endsWith("env=frontend")) { if (currentNote.mime.endsWith("env=frontend")) {
const bundle = await server.get('script/bundle/' + getCurrentNoteId()); const bundle = await server.get('script/bundle/' + noteDetailService.getCurrentNoteId());
bundleService.executeBundle(bundle); bundleService.executeBundle(bundle);
} }
if (currentNote.mime.endsWith("env=backend")) { if (currentNote.mime.endsWith("env=backend")) {
await server.post('script/run/' + getCurrentNoteId()); await server.post('script/run/' + noteDetailService.getCurrentNoteId());
} }
infoService.showMessage("Note executed"); infoService.showMessage("Note executed");