address breaking changes

This commit is contained in:
Thomas Ruoff
2022-03-14 22:35:30 +01:00
committed by Thomas Ruoff
parent 8222e04880
commit ef7f80fd92
10 changed files with 41 additions and 46 deletions

View File

@@ -47,7 +47,7 @@ export const getServerSideBooking = async (
return { props: { booking: null } }
}
await booking.populate('bill').execPopulate()
await booking.populate('bill')
// TODO: hack, not sure why _id is not serilizable
const bookingJSON = JSON.parse(JSON.stringify(booking.toJSON())) as object

View File

@@ -50,10 +50,10 @@ export async function createCalendarEvent(booking: Booking): Promise<Booking> {
requestBody: {
summary: getSummary(booking),
// description,
start: { date: booking.startDate },
end: { date: booking.endDate },
start: { date: booking.start },
end: { date: booking.end },
},
})
}, {})
booking.calendarEventId = response.data.id