additional validation of data

This commit is contained in:
2021-02-04 18:07:17 +01:00
parent 3b7ca3ccb3
commit 97aa4ae4d3
3 changed files with 24 additions and 6 deletions

View File

@@ -39,7 +39,8 @@ const restaurantSchema = mongoose.Schema({
},
imgUrl: {
type: String,
maxlength: 128
maxlength: 128,
required: true
},
workingHours: {
pn: {