- Iscrizione Conacreis

This commit is contained in:
Paolo Arena
2021-05-10 01:50:40 +02:00
parent e05bbb39ee
commit cf97870cc7
16 changed files with 336 additions and 103 deletions

View File

@@ -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) {