mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 15:07:13 +01:00
remover booker, that's overdosed
It also brings the problem of consolidating bookers over multiple bookings. The amount of data is not justifying having it in an own entity
This commit is contained in:
@@ -51,7 +51,6 @@ export default withSession(async function userHandler(
|
||||
booking.set(req.body)
|
||||
try {
|
||||
await booking.save()
|
||||
await booking.populate('booker').execPopulate()
|
||||
res.status(200).json(booking.toJSON())
|
||||
} catch (error) {
|
||||
res.status(400).end(`Failed to save booking: ${error.message}`)
|
||||
|
||||
Reference in New Issue
Block a user