mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 00:36:33 +01:00
fix backend API's createNote(), closes #1275
This commit is contained in:
@@ -276,7 +276,7 @@ function BackendScriptApi(currentNote, apiParams) {
|
|||||||
extraOptions.content = content;
|
extraOptions.content = content;
|
||||||
}
|
}
|
||||||
|
|
||||||
sql.transactional(() => {
|
return sql.transactional(() => {
|
||||||
const {note, branch} = noteService.createNewNote(extraOptions);
|
const {note, branch} = noteService.createNewNote(extraOptions);
|
||||||
|
|
||||||
for (const attr of extraOptions.attributes || []) {
|
for (const attr of extraOptions.attributes || []) {
|
||||||
|
|||||||
Reference in New Issue
Block a user