diff --git a/models/mongo/Jump.js b/models/mongo/Jump.js index 4f3262c..d403855 100644 --- a/models/mongo/Jump.js +++ b/models/mongo/Jump.js @@ -12,6 +12,7 @@ var JumpSchema = new mongoose.Schema({ aeronef: String, imat: String, hauteur: Number, + deploiement: Number, voile: String, taille: Number, categorie: String, @@ -49,6 +50,7 @@ JumpSchema.methods.toJSONFor = function(user){ aeronef: this.aeronef, imat: this.imat, hauteur: this.hauteur, + deploiement: this.deploiement, voile: this.voile, taille: this.taille, categorie: this.categorie, diff --git a/models/mongo/User.js b/models/mongo/User.js index 52f17d9..bf39014 100644 --- a/models/mongo/User.js +++ b/models/mongo/User.js @@ -12,6 +12,7 @@ var UserSchema = new mongoose.Schema({ lastname: { type: String, required: [true, "can't be blank"] }, phone: { type: String, required: [true, "can't be blank"] }, licence: Number, + poids: Number, image: String, bg_image: String, favorites: [{ type: mongoose.Schema.Types.ObjectId, ref: 'Product' }], @@ -53,6 +54,7 @@ UserSchema.methods.toAuthJSON = function () { lastname: this.lastname, phone: this.phone, licence: this.licence, + poids: this.poids, username: this.username, image: this.image || '/assets/images/users/user.jpg', bg_image: this.bg_image || '/assets/images/users/bg_user.jpg' @@ -67,6 +69,7 @@ UserSchema.methods.toJSONFor = function () { lastname: this.lastname, phone: this.phone, licence: this.licence, + poids: this.poids, username: this.username, image: this.image || '/assets/images/users/user.jpg', bg_image: this.bg_image || '/assets/images/users/bg_user.jpg' @@ -80,6 +83,7 @@ UserSchema.methods.toProfileJSONFor = function (user) { lastname: this.lastname, phone: this.phone, licence: this.licence, + poids: this.poids, username: this.username, image: this.image || '/assets/images/users/user.jpg', bg_image: this.bg_image || '/assets/images/users/bg_user.jpg',