fix: Increase possible length of user and team avatar urls

This commit is contained in:
Tom Moor
2022-09-27 23:14:03 -04:00
parent 463a8c7ccd
commit 047b17b479
3 changed files with 35 additions and 2 deletions

View File

@@ -170,7 +170,7 @@ class User extends ParanoidModel {
@AllowNull
@IsUrl
@Length({ max: 1000, msg: "avatarUrl must be less than 1000 characters" })
@Length({ max: 4096, msg: "avatarUrl must be less than 4096 characters" })
@Column(DataType.STRING)
get avatarUrl() {
const original = this.getDataValue("avatarUrl");