mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
minor sync fix for fulltext
This commit is contained in:
@@ -107,6 +107,10 @@ class Note extends Entity {
|
||||
|
||||
/** @returns {Promise} */
|
||||
async setContent(content) {
|
||||
// force updating note itself so that dateChanged is represented correctly even for the content
|
||||
this.forcedChange = true;
|
||||
await this.save();
|
||||
|
||||
this.content = content;
|
||||
|
||||
const pojo = {
|
||||
@@ -128,10 +132,6 @@ class Note extends Entity {
|
||||
await sql.upsert("note_contents", "noteId", pojo);
|
||||
|
||||
await syncTableService.addNoteContentSync(this.noteId);
|
||||
|
||||
this.forcedChange = true;
|
||||
|
||||
await this.save();
|
||||
}
|
||||
|
||||
/** @returns {Promise} */
|
||||
|
||||
Reference in New Issue
Block a user