fix backend API's createNote(), closes #1275

This commit is contained in:
zadam 2020-09-30 22:45:15 +02:00
parent cba9b92202
commit dd020baee5

View file

@ -276,7 +276,7 @@ function BackendScriptApi(currentNote, apiParams) {
extraOptions.content = content;
}
sql.transactional(() => {
return sql.transactional(() => {
const {note, branch} = noteService.createNewNote(extraOptions);
for (const attr of extraOptions.attributes || []) {