- Booking: added modify a booking (+ emails).

This commit is contained in:
Paolo Arena
2019-10-10 21:08:12 +02:00
parent 8f69856c57
commit 624f929c56
10 changed files with 81 additions and 5 deletions

View File

@@ -33,6 +33,10 @@ const bookingSchema = new Schema({
datebooked: {
type: Date,
},
modified: {
type: Boolean,
default: false
},
booked: {
type: Boolean,
},
@@ -43,7 +47,7 @@ bookingSchema.statics.findAllByUserIdAndIdApp = function (userId, idapp) {
const Booking = this;
return Booking.find({userId, idapp, booked: true}, (err, arrbooked) => {
console.log('ris Booking:', arrbooked);
// console.log('ris Booking:', arrbooked);
return arrbooked
});
};