Skip to content

Commit

Permalink
updated rewuirements validator
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanField15 committed Oct 24, 2023
1 parent 1df2f32 commit 3cf231f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions models/userModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const mongoose = require('mongoose');
const validator = require('validator');

const userSchema = new mongoose.Schema({
firstName: {
Expand All @@ -24,8 +25,6 @@ const userSchema = new mongoose.Schema({
lowercase: true,
validate: [validator.isEmail, 'Please provide a valid email']
},

}
});

const User = mongoose.model('User', userSchema);
Expand Down

0 comments on commit 3cf231f

Please sign in to comment.