mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
note content refactoring, WIP
This commit is contained in:
@@ -245,8 +245,10 @@ async function importTar(fileBuffer, importRootNote) {
|
||||
let note = await repository.getNote(noteId);
|
||||
|
||||
if (note) {
|
||||
note.content = content;
|
||||
await note.save();
|
||||
const noteContent = await note.getNoteContent();
|
||||
|
||||
noteContent.content = content;
|
||||
await noteContent.save();
|
||||
}
|
||||
else {
|
||||
const noteTitle = getNoteTitle(filePath, noteMeta);
|
||||
|
||||
Reference in New Issue
Block a user