fix: Correct annotation order 🙈

This commit is contained in:
Tom Moor
2022-07-07 12:23:27 +02:00
parent f90309e781
commit ec8c0645ba

View File

@@ -148,12 +148,12 @@ class User extends ParanoidModel {
@Column
language: string;
@Column(DataType.STRING)
@Length({
min: 0,
max: 1000,
msg: "avatarUrl must be less than 1000 characters",
})
@Column(DataType.STRING)
get avatarUrl() {
const original = this.getDataValue("avatarUrl");