diff --git a/models/restaurant.js b/models/restaurant.js index d866e6d..0b9e3f1 100644 --- a/models/restaurant.js +++ b/models/restaurant.js @@ -28,6 +28,7 @@ const restaurantSchema = mongoose.Schema({ required: true, }, }, + type: String, placesId: String, imgUrl: { type: String, diff --git a/services/dataPrepServices.js b/services/dataPrepServices.js index 0942c8e..d8c8a0c 100644 --- a/services/dataPrepServices.js +++ b/services/dataPrepServices.js @@ -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,