added "type" field to restaurant
This commit is contained in:
@@ -28,6 +28,7 @@ const restaurantSchema = mongoose.Schema({
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
type: String,
|
||||
placesId: String,
|
||||
imgUrl: {
|
||||
type: String,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user