-
+
{{travel.title}}
{{travel.description}}
diff --git a/server/controllers/travelController.js b/server/controllers/travelController.js
index 5702625..eeab174 100644
--- a/server/controllers/travelController.js
+++ b/server/controllers/travelController.js
@@ -57,10 +57,15 @@ exports.addTravel = function(req, res) {
from: req.body.from,
to: req.body.to,
date: req.body.date,
+ periodic: req.body.periodic,
generateddate: req.body.generateddate,
seats: req.body.seats,
+ package: req.body.package,
icon: req.body.icon,
- phone: req.body.phone
+ phone: req.body.phone,
+ telegram: req.body.telegram,
+ collectivized: req.body.collectivized,
+ modality: req.body.modality
});
travel.save(function(err, travel) {
diff --git a/server/models/travelModel.js b/server/models/travelModel.js
index 2058f48..d0e8f3f 100644
--- a/server/models/travelModel.js
+++ b/server/models/travelModel.js
@@ -9,9 +9,17 @@ var travelSchema = new Schema({
from: { type: String },
to: { type: String },
date: { type: Date },
+ periodic: { type: Boolean },
generateddate: { type: Date },
seats: { type: Number },
+ package: { type: Boolean },
icon: { type: String },
- phone: { type: Number }
+ phone: { type: Number },
+ telegram: { type: String },
+ collectivized: { type: Boolean },
+ modality: { type: String } //if is an offering travel or asking for travel
})
module.exports = mongoose.model('travelModel', travelSchema);
+
+
+//modality can be: offering, asking