diff --git a/GYMApp/GYMApp/app.js b/GYMApp/GYMApp/app.js index 08199ce..527dbc0 100644 --- a/GYMApp/GYMApp/app.js +++ b/GYMApp/GYMApp/app.js @@ -47,6 +47,7 @@ app.post('/user/track', function(req,res, next){ machine: req.body.machine, calories:req.body.calories, miles: req.body.miles , + floors: req.body.floors, day: req.body.day }); diff --git a/GYMApp/GYMApp/models/user.js b/GYMApp/GYMApp/models/user.js index 7eb57ff..d8dced1 100644 --- a/GYMApp/GYMApp/models/user.js +++ b/GYMApp/GYMApp/models/user.js @@ -5,6 +5,7 @@ var nellyGymSchema = new Schema({ machine: {type: String, required: true}, calories: {type: Number, required: true}, miles: {type: Number, required: true}, + floors: {type: Number, required: true}, day: {type: String, required: true} }); diff --git a/GYMApp/GYMApp/views/user/profile.hbs b/GYMApp/GYMApp/views/user/profile.hbs index 1a37633..402c434 100644 --- a/GYMApp/GYMApp/views/user/profile.hbs +++ b/GYMApp/GYMApp/views/user/profile.hbs @@ -18,7 +18,7 @@ {{this.machine}} {{this.minutes}} {{this.miles}} - floors + {{this.floors}} {{this.calories}}