Fixed update call

This commit is contained in:
nicolas 2021-06-09 21:59:29 +02:00
parent df245ff9a5
commit bd1cb474c5

View file

@ -246,7 +246,7 @@ const GoogleCalendar = (credential): CalendarApiAdapter => {
}), }),
updateEvent: (uid: String, event: CalendarEvent) => new Promise((resolve, reject) => { updateEvent: (uid: String, event: CalendarEvent) => new Promise((resolve, reject) => {
const calendar = google.calendar({version: 'v3', auth: myGoogleAuth}); const calendar = google.calendar({version: 'v3', auth: myGoogleAuth});
calendar.events.updateEvent({ calendar.events.update({
auth: myGoogleAuth, auth: myGoogleAuth,
calendarId: 'primary', calendarId: 'primary',
eventId: uid, eventId: uid,