mirror of
https://github.com/arnaucube/commonroutesServer.git
synced 2026-02-28 05:26:42 +01:00
updated
This commit is contained in:
@@ -20,6 +20,7 @@ exports.getAllTravels = function(req, res) {
|
||||
exports.getTravelById = function (req, res) {
|
||||
travelModel.findOne({_id: req.params.travelid})
|
||||
.lean()
|
||||
.populate('user', 'username avatar')
|
||||
.populate('joins', 'username avatar')
|
||||
.populate('comments', 'comment user')
|
||||
.exec(function (err, travel) {
|
||||
|
||||
Reference in New Issue
Block a user