From ec8c0645ba58276f84ceddd35f039676814814fa Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 7 Jul 2022 12:23:27 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Correct=20annotation=20order=20?= =?UTF-8?q?=F0=9F=99=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/models/User.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/User.ts b/server/models/User.ts index cd89693c8..727483200 100644 --- a/server/models/User.ts +++ b/server/models/User.ts @@ -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");