fix: attrbiutes not being pushed to array

This commit is contained in:
Florian Bouillon 2025-04-03 13:39:24 +02:00
parent 4f8162294b
commit ce8ae9b89f
Signed by: Florian Bouillon
GPG Key ID: 7676FF78F3BC40EC

View File

@ -95,7 +95,7 @@ export default abstract class SchemaItem<Type = any> implements StandardSchemaV1
}
public attrs(...attributes: Array<string>) {
this.attributes.concat(attributes)
this.attributes.push(...attributes)
return this
}