similarity tweaks

This commit is contained in:
zadam
2020-09-17 14:34:10 +02:00
parent 4e15bc0bb1
commit 6220b02ef0
3 changed files with 54 additions and 2 deletions

View File

@@ -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;