Inlined arrays fixed

This commit is contained in:
barsdeveloper
2024-03-26 00:12:04 +01:00
parent 77a583e17f
commit c14212b230
3 changed files with 7 additions and 6 deletions

View File

@@ -96,7 +96,7 @@ export default class Serializer {
} else {
result += attributeSeparator
}
if (attributes[key]?.inlined) {
if (AttributeInfo.getAttribute(entity, key, "inlined")) {
result += this.doWrite(
value,
insideString,
@@ -105,7 +105,7 @@ export default class Serializer {
attributeSeparator,
false,
attributeValueConjunctionSign,
attributes[key].type instanceof Array
AttributeInfo.getAttribute(entity, key, "type") instanceof Array
? k => attributeKeyPrinter(`${keyValue}${k}`)
: k => attributeKeyPrinter(`${keyValue}.${k}`)
)