fix: Improved model validation for Collection (#3749)
* fix: Added improved model validation for Collection attributes * sp * fix: Enforce title length in UI
This commit is contained in:
@@ -188,7 +188,6 @@ class Document extends ParanoidModel {
|
||||
urlId: string;
|
||||
|
||||
@Length({
|
||||
min: 0,
|
||||
max: MAX_TITLE_LENGTH,
|
||||
msg: `Document title must be less than ${MAX_TITLE_LENGTH} characters`,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user