added "type" field to restaurant

This commit is contained in:
2020-10-20 17:15:58 +02:00
parent 06699dc43a
commit d44a395bf5
2 changed files with 3 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ const restaurantSchema = mongoose.Schema({
required: true,
},
},
type: String,
placesId: String,
imgUrl: {
type: String,

View File

@@ -61,6 +61,7 @@ async function createRestaurant(request, oldRestaurant) {
coordinates: request.coordinates,
},
placesId: request.placesId,
type: request.type,
imgUrl: img,
workingHours: request.workingHours,
lunchHours: request.lunchHours,
@@ -83,6 +84,7 @@ async function createRestaurant(request, oldRestaurant) {
coordinates: request.coordinates,
},
placesId: request.placesId,
type: request.type,
imgUrl: img,
workingHours: request.workingHours,
lunchHours: request.lunchHours,