Skip to content

Commit

Permalink
perf(links): set name max length to 25
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Aug 18, 2022
1 parent 29f0e52 commit dde359a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/links/links.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author: Wibus
* @Date: 2022-07-11 11:54:02
* @LastEditors: Wibus
* @LastEditTime: 2022-08-01 23:05:39
* @LastEditTime: 2022-08-18 15:23:22
* Coding With IU
*/

Expand Down Expand Up @@ -43,7 +43,7 @@ export enum LinksStatus {
export class LinksModel extends BaseModel {
@prop({ required: true, trim: true, unique: true })
@IsString({ message: "链接名称不能为空" })
@MaxLength(20, { message: "链接名称是不是填错了呀www" })
@MaxLength(25, { message: "链接名称是不是填错了呀www" })
name: string;

@prop({
Expand Down

0 comments on commit dde359a

Please sign in to comment.