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, required: true,
}, },
}, },
type: String,
placesId: String, placesId: String,
imgUrl: { imgUrl: {
type: String, type: String,

View File

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