further work on billing

This commit is contained in:
Thomas Ruoff
2020-10-07 00:32:22 +02:00
committed by Thomas Ruoff
parent f8434233d9
commit c396cdcbf9
6 changed files with 75 additions and 52 deletions

View File

@@ -14,6 +14,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
} = context
const uuid = Array.isArray(uuids) ? uuids[0] : uuids
const booking = await getBookingByUUID(uuid)
await booking.populate('booker').execPopulate()
if (!booking) {
res.statusCode = 404