chore: Audit of all model column validations (#3757)
* chore: Updating all model validations before the white-hatters get to it ;) * test * Remove isUrl validation, thinking about it need to account for minio and other weird urls here
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
IsUUID,
|
||||
Table,
|
||||
DataType,
|
||||
Length,
|
||||
} from "sequelize-typescript";
|
||||
import { globalEventQueue } from "../queues";
|
||||
import { Event as TEvent } from "../types";
|
||||
@@ -26,6 +27,10 @@ class Event extends IdModel {
|
||||
@Column(DataType.UUID)
|
||||
modelId: string;
|
||||
|
||||
@Length({
|
||||
max: 255,
|
||||
msg: "name must be 255 characters or less",
|
||||
})
|
||||
@Column
|
||||
name: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user