From 23f8f70c83c88f219d6a09f1b679ec1bb3c69314 Mon Sep 17 00:00:00 2001 From: dwindown Date: Tue, 23 Dec 2025 11:37:53 +0700 Subject: [PATCH] Remove attendees from calendar event to work without Domain-Wide Delegation - Service accounts require Domain-Wide Delegation to invite attendees - Removed attendees array, sendUpdates, and guest permissions - Client email still included in event description - Google Meet link will still be generated successfully - Can re-enable attendees later if Domain-Wide Delegation is configured --- supabase/functions/create-google-meet-event/index.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/supabase/functions/create-google-meet-event/index.ts b/supabase/functions/create-google-meet-event/index.ts index 4c77391..e9e0b4b 100644 --- a/supabase/functions/create-google-meet-event/index.ts +++ b/supabase/functions/create-google-meet-event/index.ts @@ -205,19 +205,14 @@ serve(async (req: Request): Promise => { dateTime: endDate.toISOString(), timeZone: "Asia/Jakarta", }, - attendees: [ - { email: body.client_email }, - ], + // Note: attendees removed because service accounts need Domain-Wide Delegation + // Client email is included in description instead conferenceData: { createRequest: { requestId: body.slot_id, conferenceSolutionKey: { type: "hangoutsMeet" }, }, }, - sendUpdates: "all", - guestsCanInviteOthers: false, - guestsCanModify: false, - guestsCanSeeOtherGuests: false, }; console.log("Creating event in calendar:", calendarId);