Skip to content

Commit

Permalink
fix: article content maxlength
Browse files Browse the repository at this point in the history
  • Loading branch information
bs32g1038 committed Mar 31, 2023
1 parent f13eaa4 commit f723db3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/models/article.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const ArticleJoiSchema = {
content: Joi.string()
.trim()
.min(1)
.max(5000)
.max(15000)
.alter({
post: (schema) => schema.required(),
}),
Expand Down Expand Up @@ -56,7 +56,7 @@ export class Article {
@Prop({ maxlength: 80, trim: true, required: true })
title: string;

@Prop({ maxlength: 5000, trim: true, required: true })
@Prop({ maxlength: 15000, trim: true, required: true })
content: string;

@Prop({ maxlength: 100, trim: true })
Expand Down

0 comments on commit f723db3

Please sign in to comment.