Skip to content

Commit

Permalink
fix(post): summary props define is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Aug 10, 2022
1 parent 826c1c5 commit 25f40cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/post/post.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ export class PostModel extends WriteBaseModel {
@ApiProperty({ description: "文章路径" })
slug!: string;

@prop({ trim: true, required: true })
@prop({ trim: true })
@IsString()
@ApiProperty({ description: "文章摘要" })
@IsOptional()
summary?: string;

@prop({ ref: () => CategoryModel, required: true })
Expand Down

0 comments on commit 25f40cd

Please sign in to comment.