mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 14:37:13 +01:00
add confirm and reject buttons to adming/booking
This commit is contained in:
@@ -23,6 +23,9 @@ export default withSession(async function bookingHandler(req, res) {
|
||||
// FIXME: validate all the things
|
||||
booking.set(req.body)
|
||||
await booking.save()
|
||||
|
||||
await booking.populate('booker').execPopulate()
|
||||
|
||||
res.status(200).json(booking.toJSON())
|
||||
break
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user