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