db setup fixes

This commit is contained in:
zadam
2020-03-26 16:59:40 +01:00
parent b778985b5e
commit 2e55d544f1
5 changed files with 22 additions and 16 deletions

View File

@@ -89,15 +89,16 @@ class NoteRevision extends Entity {
this.content = "";
}
}
if (this.isStringNote()) {
this.content = this.content === null
? ""
: this.content.toString("UTF-8");
}
}
return this.content;
if (this.isStringNote()) {
return this.content === null
? ""
: this.content.toString("UTF-8");
}
else {
return this.content;
}
}
/** @returns {Promise} */