mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
note revision sync fix
This commit is contained in:
@@ -130,6 +130,14 @@ class NoteRevision extends Entity {
|
||||
await syncTableService.addNoteRevisionContentSync(this.noteRevisionId);
|
||||
}
|
||||
|
||||
beforeSaving() {
|
||||
super.beforeSaving();
|
||||
|
||||
if (this.isChanged) {
|
||||
this.utcDateModified = dateUtils.utcNowDateTime();
|
||||
}
|
||||
}
|
||||
|
||||
// cannot be static!
|
||||
updatePojo(pojo) {
|
||||
if (pojo.isProtected) {
|
||||
|
||||
Reference in New Issue
Block a user