mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
similarity tweaks
This commit is contained in:
@@ -332,6 +332,18 @@ class Note {
|
||||
this.isDecrypted = true;
|
||||
}
|
||||
}
|
||||
|
||||
// for logging etc
|
||||
get pojo() {
|
||||
const pojo = {...this};
|
||||
|
||||
delete pojo.noteCache;
|
||||
delete pojo.ancestorCache;
|
||||
delete pojo.attributeCache;
|
||||
delete pojo.flatTextCache;
|
||||
|
||||
return pojo;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Note;
|
||||
|
||||
Reference in New Issue
Block a user