server-ts: Fix error with sanitize_attribute_name

This commit is contained in:
Elian Doran 2024-02-17 11:57:42 +02:00
parent 45a6c9558f
commit b8ccf5ba8f
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View File

@ -183,7 +183,7 @@ class BAttribute extends AbstractBeccaEntity<BAttribute> {
this.validate();
}
this.name = sanitizeAttributeName(this.name);
this.name = sanitizeAttributeName.sanitizeAttributeName(this.name);
if (!this.value) {
// null value isn't allowed

View File

@ -13,4 +13,6 @@ function sanitizeAttributeName(origName: string) {
}
export = sanitizeAttributeName;
export = {
sanitizeAttributeName
};