- Iscrizione Conacreis
This commit is contained in:
@@ -40,7 +40,7 @@ router.post('/', authenticate, (req, res) => {
|
||||
// console.log('fieldtochange', fieldtochange);
|
||||
|
||||
// Modify:
|
||||
return Booking.findOne({ id_bookedevent: id })
|
||||
return Booking.findOne({ id_bookedevent: id, userId: req.user._id })
|
||||
.then(trovato => {
|
||||
// console.log('trovato', trovato);
|
||||
if (trovato) {
|
||||
|
||||
Reference in New Issue
Block a user