Skip to content

Commit

Permalink
comma
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanField15 committed Oct 24, 2023
1 parent 3cf231f commit 3e1cba3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions models/userModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const userSchema = new mongoose.Schema({
unique: true,
trim: true,
maxlength: [40, 'User first name must be less than or equal to 40 chars'],
minlength: [10, 'User first name must be greater than or equal to 10 chars'],
minlength: [
10,
'User first name must be greater than or equal to 10 chars',
],
},
lastName: {
type: String,
Expand All @@ -23,7 +26,7 @@ const userSchema = new mongoose.Schema({
required: [true, 'Please provide your email'],
unique: true,
lowercase: true,
validate: [validator.isEmail, 'Please provide a valid email']
validate: [validator.isEmail, 'Please provide a valid email'],
},
});

Expand Down

0 comments on commit 3e1cba3

Please sign in to comment.