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:
Tom Moor
2022-07-08 20:10:22 +02:00
committed by GitHub
parent 98106e7f6f
commit 4a46d19846
8 changed files with 48 additions and 12 deletions

View File

@@ -7,11 +7,11 @@ import { addAttributeOptions } from "sequelize-typescript";
*/
export default function Length({
msg,
min,
min = 0,
max,
}: {
msg?: string;
min: number;
min?: number;
max: number;
}): (target: any, propertyName: string) => void {
return (target: any, propertyName: string) =>