note content refactoring, WIP

This commit is contained in:
zadam
2019-02-08 21:01:26 +01:00
parent 6952b643ae
commit 4a093000be
7 changed files with 135 additions and 151 deletions

View File

@@ -8,7 +8,10 @@ class Entity {
*/
constructor(row = {}) {
for (const key in row) {
this[key] = row[key];
// ! is used when joint-fetching notes and note_contents objects for performance
if (!key.startsWith('!')) {
this[key] = row[key];
}
}
if ('isDeleted' in this) {