mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
address breaking changes
This commit is contained in:
committed by
Thomas Ruoff
parent
8222e04880
commit
ef7f80fd92
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user