getting rid of note complement WIP

This commit is contained in:
zadam
2023-05-05 16:37:39 +02:00
parent 9cdcbb3125
commit 5e1f81e53e
23 changed files with 163 additions and 90 deletions

View File

@@ -142,7 +142,7 @@ class AbstractBeccaEntity {
throw new Error(`Cannot set null content to ${this.constructor.primaryKeyName} '${this[this.constructor.primaryKeyName]}'`);
}
if (this.isStringNote()) {
if (this.hasStringContent()) {
content = content.toString();
}
else {
@@ -246,7 +246,7 @@ class AbstractBeccaEntity {
}
}
if (this.isStringNote()) {
if (this.hasStringContent()) {
return content === null
? ""
: content.toString("UTF-8");