mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 14:37:13 +01:00
add bill to booking if there
This commit is contained in:
@@ -16,6 +16,7 @@ export const getServerSideBooking: GetServerSideProps = async (context) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await booking.populate('booker').execPopulate()
|
await booking.populate('booker').execPopulate()
|
||||||
|
await booking.populate('bill').execPopulate()
|
||||||
|
|
||||||
// TODO: hack, not sure why _id is not serilizable
|
// TODO: hack, not sure why _id is not serilizable
|
||||||
const bookingJSON = JSON.parse(JSON.stringify(booking.toJSON()))
|
const bookingJSON = JSON.parse(JSON.stringify(booking.toJSON()))
|
||||||
|
|||||||
Reference in New Issue
Block a user