Skip to content

Commit

Permalink
fixed naming
Browse files Browse the repository at this point in the history
  • Loading branch information
TSlashDreamy committed Sep 13, 2023
1 parent 8aa4526 commit c740b97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/resourcesCategory.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const resourcesCategorySchema = new Schema(
{
name: {
type: String,
required: [true, FIELD_CANNOT_BE_EMPTY('title')],
minLength: [1, FIELD_CANNOT_BE_SHORTER('title', 1)],
maxLength: [50, FIELD_CANNOT_BE_LONGER('title', 50)]
required: [true, FIELD_CANNOT_BE_EMPTY('name')],
minLength: [1, FIELD_CANNOT_BE_SHORTER('name', 1)],
maxLength: [50, FIELD_CANNOT_BE_LONGER('name', 50)]
},
author: {
type: Schema.Types.ObjectId,
Expand Down

0 comments on commit c740b97

Please sign in to comment.